Documentation
¶
Index ¶
- Variables
- func NewFactory() activesync.Factory
- type Attach
- type ChangedFolder
- type ClientChange
- type Email
- type Folder
- type FolderCreateReq
- type FolderCreateResp
- type FolderDeleteResp
- type FolderOperation
- type FolderSyncAdd
- type FolderSyncChange
- type FolderSyncDelete
- type FolderSyncResp
- type FolderSyncUpdate
- type FolderUpdateReq
- type FolderUpdateResp
- type GetHierarchyResp
- type MoveItem
- type MoveItemsResp
- type PingReq
- type PingResp
- type Response
- type SyncCollection
- type SyncOptions
- type SyncReq
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SMTPHost = "127.0.0.1" SMTPPort = 25 )
Functions ¶
func NewFactory ¶
func NewFactory() activesync.Factory
Types ¶
type ChangedFolder ¶
type ChangedFolder struct {
Folder []uint64
}
type ClientChange ¶
type Email ¶
type Email struct { To string Cc string From string Subject string DateReceived string DisplayTo string ThreadTopic string Importance string Read string Attachments struct { Attachment []Attach } MIMETruncated string MIMESize uint64 MIMEData string BodyTruncated string BodySize uint64 Body string MessageClass string InternetCPID string }
type FolderCreateReq ¶
type FolderCreateReq struct { XMLName xml.Name `xml:"FolderCreate"` SyncKey uint64 ParentId uint64 DisplayName string Type int }
func (*FolderCreateReq) FolderType ¶
func (r *FolderCreateReq) FolderType() (backend.FolderType, error)
type FolderCreateResp ¶
type FolderDeleteResp ¶
type FolderOperation ¶
type FolderOperation interface{} // One of FolderSyncAdd, FolderSyncDelete, and FolderSyncUpdate
type FolderSyncAdd ¶
type FolderSyncChange ¶
type FolderSyncChange struct { Count int Operations []FolderOperation }
type FolderSyncDelete ¶
type FolderSyncResp ¶
type FolderSyncUpdate ¶
type FolderUpdateReq ¶
type FolderUpdateResp ¶
type GetHierarchyResp ¶
type MoveItemsResp ¶
type SyncCollection ¶
type SyncCollection struct { Class string SyncKey uint64 CollectionId uint64 DeletesAsMoves *string // boolean value, but we use string due to the self-closed tag. GetChanges *string // boolean value, but we use string due to the self-closed tag. WindowSize int // Collection local window size Options SyncOptions Commands struct { // Some fields may be empty depending on its command type. Values []ClientChange `xml:",any"` } }
func (*SyncCollection) HasDeletesAsMoves ¶
func (r *SyncCollection) HasDeletesAsMoves() bool
func (*SyncCollection) HasGetChanges ¶
func (r *SyncCollection) HasGetChanges() bool
type SyncOptions ¶
type SyncOptions struct { // If the FilterType element is not present, the default value of 0 is used. FilterType string // No explanation in the specification if the MIMETruncation is not present. MIMETruncation string // If the MIMESupport element is not present, the default value of 0 is used. MIMESupport string // If the Truncation element is not present, the value of 9 is used. Truncation string }
type SyncReq ¶
type SyncReq struct { XMLName xml.Name `xml:"Sync"` Collections struct { Collection []SyncCollection } WindowSize int // Global window size }
func (*SyncReq) HasClientChanges ¶
func (*SyncReq) NumCollections ¶
Click to show internal directories.
Click to hide internal directories.