core

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const URI jmap.URI = "urn:ietf:params:jmap:core"

Variables

This section is empty.

Functions

func Discover

func Discover(domain string) (string, error)

Discover the Session Endpoint of a domain

Types

type Core

type Core struct {
	// The maximum file size, in bytes
	MaxSizeUpload       uint64 `json:"maxSizeUpload"`
	MaxConcurrentUpload uint64 `json:"maxConcurrentUpload"`

	// The maximum size, in bytes, that the server will accept for a request
	MaxSizeRequest        uint64 `json:"maxSizeRequest"`
	MaxConcurrentRequests uint64 `json:"maxConcurrentRequests"`
	MaxCallsInRequest     uint64 `json:"maxCallsInRequest"`

	// The maximum number of objects that the client may request in a single
	// /get type method call.
	MaxObjectsInGet     uint64               `json:"maxObjectsInGet"`
	MaxObjectsInSet     uint64               `json:"maxObjectsInSet"`
	CollationAlgorithms []jmap.CollationAlgo `json:"collationAlgorithms"`
}

func (*Core) New

func (c *Core) New() jmap.Capability

func (*Core) URI

func (c *Core) URI() jmap.URI

type Echo

type Echo struct {
	Hello string
}

The Core/echo method

func (Echo) Name

func (e Echo) Name() string

func (Echo) Requires

func (e Echo) Requires() []jmap.URI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL