Coder Social home page Coder Social logo

go-jmap's Introduction

go-jmap's People

Contributors

foxcpp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-jmap's Issues

Context support

Both for client and server side. For client - duplicate methods and add ctx argument. For server - pass context value to callbacks.

JMAP Core server implementation

Things to consider

Below are things I believe would make library more useful.

  • go-jmap should avoid enforcing certain storage design and definitely must not provide storage implementation itself. I think it is best to simply translate API requests into corresponding method calls on some interface called "Backend" (see go-imap for a good example of how this could be done).

  • go-jmap should avoid enforcing certain authentication design and definitely must not provide authentication implementation itself. As with previous point, authentication should be implemented by calling out into user-provided interface implementation.

  • go-jmap should rely only on net/http for HTTP server. Use of more advanced frameworks will make it easier to violate the first point.

  • JMAP Core, JMAP Mail, etc implementations should be kept independent of each other for extensibility purposes. JMAP is not only about email.

JMAP Core implementation

Reference: https://jmap.io/spec-core.html
List below is nowhere complete.

  • Fundamental types
    • Int
    • UnsignedInt
    • Date
    • UTCDate
    • Id
  • Autodiscovery
  • Structures for base JMAP Core objects
    • Session
    • Account
    • Core Capabilities
    • Request-level errors
    • Invocation
      • Method-level errors
      • Decode Invocation "subtypes" using type -> decoder mapping.
    • Request
    • Response
    • Set-level errors
  • Core request objects
    • Object/get
    • Object/changes
    • Object/set
    • Object/copy
    • Object/query
    • Object/queryChanges
  • Core/echo
  • Binary data I/O
    • Downloading
    • Uploading
    • Blob/Copy method
  • Push
    • StateChange structure
    • PushSubscription structure
      • PushSubscription/get
      • PushSubscription/set
    • Event Source
  • Client interface
    • Get Session object
    • Interface to send request objects directly
    • "Call batch builder" interface
    • Binary I/O interface
  • Server interface
    • Base backend interface
    • Binary I/O backend interface
    • Method call dispatching

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.