Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Changes ¶
type ChangesResponse ¶
type ChangesResponse struct {
Account jmap.ID `json:"accountId,omitempty"`
OldState string `json:"oldState,omitempty"`
NewState string `json:"newState,omitempty"`
HasMoreChanges bool `json:"hasMoreChanges,omitempty"`
Created []jmap.ID `json:"created,omitempty"`
Updated []jmap.ID `json:"updated,omitempty"`
Destroyed []jmap.ID `json:"destroyed,omitempty"`
}
type FilterCondition ¶
type FilterOperator ¶
type Get ¶
type Get struct {
Account jmap.ID `json:"accountId,omitempty"`
IDs []jmap.ID `json:"ids,omitempty"`
Properties []string `json:"properties,omitempty"`
ReferenceIDs *jmap.ResultReference `json:"#ids,omitempty"`
ReferenceProperties *jmap.ResultReference `json:"#properties,omitempty"`
}
type GetResponse ¶
type GetResponse struct {
Account jmap.ID `json:"accountId,omitempty"`
State string `json:"state,omitempty"`
List []*SieveScript `json:"list,omitempty"`
NotFound []string `json:"notFound,omitempty"`
}
type Query ¶
type Query struct {
Account jmap.ID `json:"accountId,omitempty"`
Filter Filter `json:"filter,omitempty"`
Sort []*SortComparator `json:"sort,omitempty"`
Position int64 `json:"position,omitempty"`
Anchor jmap.ID `json:"anchor,omitempty"`
AnchorOffset int64 `json:"anchorOffset,omitempty"`
Limit uint64 `json:"limit,omitempty"`
CalculateTotal bool `json:"calculateTotal,omitempty"`
}
type QueryChanges ¶
type QueryChanges struct {
Account jmap.ID `json:"accountId,omitempty"`
Filter Filter `json:"filter,omitempty"`
Sort []*SortComparator `json:"sort,omitempty"`
SinceQueryState string `json:"sinceQueryState,omitempty"`
MaxChanges uint64 `json:"maxChanges,omitempty"`
UpToID jmap.ID `json:"upToId,omitempty"`
CalculateTotal bool `json:"calculateTotal,omitempty"`
}
func (*QueryChanges) Name ¶
func (m *QueryChanges) Name() string
func (*QueryChanges) Requires ¶
func (m *QueryChanges) Requires() []jmap.URI
type QueryChangesResponse ¶
type QueryResponse ¶
type QueryResponse struct {
Account jmap.ID `json:"accountId,omitempty"`
QueryState string `json:"queryState,omitempty"`
CanCalculateChanges bool `json:"canCalculateChanges,omitempty"`
Position uint64 `json:"position,omitempty"`
IDs []jmap.ID `json:"ids,omitempty"`
Total int64 `json:"total,omitempty"`
Limit uint64 `json:"limit,omitempty"`
}
type Set ¶
type Set struct {
Account jmap.ID `json:"accountId,omitempty"`
IfInState string `json:"ifInState,omitempty"`
Create map[jmap.ID]*SieveScript `json:"create,omitempty"`
Update map[jmap.ID]jmap.Patch `json:"update,omitempty"`
Destroy []jmap.ID `json:"destroy,omitempty"`
// OnSuccessActivateScript is the ID of the script to activate if the
// set operation succeeds, or "#creation-id" to reference a script being
// created in the same call
OnSuccessActivateScript *jmap.ID `json:"onSuccessActivateScript,omitempty"`
// OnSuccessDeactivateScript indicates whether to deactivate the active
// script if the set operation succeeds
OnSuccessDeactivateScript bool `json:"onSuccessDeactivateScript,omitempty"`
}
type SetResponse ¶
type SetResponse struct {
Account jmap.ID `json:"accountId,omitempty"`
OldState string `json:"oldState,omitempty"`
NewState string `json:"newState,omitempty"`
Created map[jmap.ID]*SieveScript `json:"created,omitempty"`
Updated map[jmap.ID]*SieveScript `json:"updated,omitempty"`
Destroyed []jmap.ID `json:"destroyed,omitempty"`
NotCreated map[jmap.ID]*jmap.SetError `json:"notCreated,omitempty"`
NotUpdated map[jmap.ID]*jmap.SetError `json:"notUpdated,omitempty"`
NotDestroyed map[jmap.ID]*jmap.SetError `json:"notDestroyed,omitempty"`
}
type SieveScript ¶
type SieveScript struct {
// ID is the server-assigned identifier for this script
ID jmap.ID `json:"id,omitempty"`
// Name is the user-assigned name of the script
Name *string `json:"name,omitempty"`
// BlobID is the identifier for the blob containing the raw script
BlobID jmap.ID `json:"blobId,omitempty"`
// IsActive indicates whether this script is the active script
IsActive bool `json:"isActive,omitempty"`
}
SieveScript represents a Sieve script on the server
type SortComparator ¶
type SortComparator struct {
Property string `json:"property,omitempty"`
IsAscending bool `json:"isAscending"`
Collation jmap.CollationAlgo `json:"collation,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.