Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JMAP Core implementation #1

Open
24 of 45 tasks
foxcpp opened this issue May 15, 2019 · 1 comment
Open
24 of 45 tasks

JMAP Core implementation #1

foxcpp opened this issue May 15, 2019 · 1 comment
Labels
client Related to client code server Related to server code
Milestone

Comments

@foxcpp
Copy link
Owner

foxcpp commented May 15, 2019

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
@foxcpp foxcpp added this to the go-jmap 0.1 milestone May 15, 2019
@foxcpp foxcpp pinned this issue May 18, 2019
@foxcpp
Copy link
Owner Author

foxcpp commented May 22, 2019

I wonder if an interface like that is good to make it easier to construct Request objects...

b := client.Batch{}
b.Use(MailCapability)
b.Add("Todo/get", jmap.GetArgs{AccountId: "id", Ids: []jmap.ID{...}}, b.NextCallID())

b.NthCallID(1) // returns CallID of first request, for use in references

cl := client.Client{...}
resp, err := cl.Send(b)

@foxcpp foxcpp added client Related to client code server Related to server code labels May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Related to client code server Related to server code
Projects
None yet
Development

No branches or pull requests

1 participant