Documentation ¶
Index ¶
- type Attributes
- type BlobStorageRequest
- type BlobStorageResponse
- type DeviceTokenRequest
- type HostResponse
- type IDRequest
- type Integration
- type IntegrationFile
- type IntegrationFolder
- type IntegrationMetadata
- type IntegrationsResponse
- type NotificationMessage
- type NotificationType
- type RawMetadata
- type StatusResponse
- type SyncCompleted
- type SyncCompletedRequestV2
- type SyncRootV3
- type UploadRequest
- type UploadResponse
- type WsMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct { Auth0UserID string `json:"auth0UserID"` Bookmarked bool `json:"bookmarked,omitempty"` Event NotificationType `json:"event"` ID string `json:"id,omitempty"` Parent string `json:"parent,omitempty"` SourceDeviceDesc string `json:"sourceDeviceDesc"` SourceDeviceID string `json:"sourceDeviceID"` Type common.EntryType `json:"type,omitempty"` Version string `json:"version,omitempty"` VissibleName string `json:"vissibleName,omitempty"` }
Attributes child object
type BlobStorageRequest ¶ added in v0.0.5
type BlobStorageRequest struct { Method string `json:"http_method"` Initial bool `json:"initial_sync"` RelativePath string `json:"relative_path"` }
BlobStorageRequest else
type BlobStorageResponse ¶ added in v0.0.5
type BlobStorageResponse struct { Expires string `json:"expires"` Method string `json:"method"` RelativePath string `json:"relative_path"` URL string `json:"url"` MaxRequestSize int64 `json:"maxuploadsize_bytes,omitempty"` }
BlobStorageResponse what else
type DeviceTokenRequest ¶
type DeviceTokenRequest struct { Code string `json:"code"` DeviceDesc string `json:"deviceDesc"` DeviceID string `json:"deviceID"` }
DeviceTokenRequest give me token
type HostResponse ¶
HostResponse what the host responded
type IDRequest ¶ added in v0.0.4
type IDRequest struct {
ID string `json:"ID"`
}
IDRequest request with only an id
type Integration ¶ added in v0.0.6
type Integration struct { Added time.Time `json:"added"` ID string `json:"id"` Issues string `json:"issues"` Name string `json:"name"` Provider string `json:"provider"` UserID string `json:"userID"` }
Integration integrations (google,dropbox)
type IntegrationFile ¶ added in v0.0.6
type IntegrationFile struct { DateChanged time.Time `json:"dateChanged"` FileExtension string `json:"fileExtension"` FileID string `json:"fileID"` FileType string `json:"fileType"` ID string `json:"id"` Name string `json:"name"` ProvidedFileType string `json:"providedFileType"` Size int `json:"size"` SourceFileType string `json:"sourceFileType"` }
type IntegrationFolder ¶ added in v0.0.6
type IntegrationFolder struct { FolderID string `json:"folderID"` ID string `json:"id"` Name string `json:"name"` Path string `json:"path"` Files []*IntegrationFile `json:"files"` SubFolders []*IntegrationFolder `json:"subFolders"` }
func NewIntegrationFolder ¶ added in v0.0.8
func NewIntegrationFolder(id, name string) *IntegrationFolder
type IntegrationMetadata ¶ added in v0.0.8
type IntegrationsResponse ¶ added in v0.0.5
type IntegrationsResponse struct {
Integrations []Integration `json:"integrations"`
}
IntegrationsResponse integrations
type NotificationMessage ¶
type NotificationMessage struct { Attributes Attributes `json:"attributes"` MessageID string `json:"messageId,omitempty"` MessageID2 string `json:"message_id,omitempty"` MessageID3 string `json:"messageid,omitempty"` PublishTime string `json:"publishTime,omitempty"` PublishTime2 string `json:"publish_time,omitempty"` }
NotificationMessage child object
type NotificationType ¶ added in v0.0.12
type NotificationType string
NotificationType type of the notifiction
const ( //DocAddedEvent addded DocAddedEvent NotificationType = "DocAdded" //DocDeletedEvent deleted DocDeletedEvent NotificationType = "DocDeleted" //SyncCompletedEvent sync completed sync15 SyncCompletedEvent NotificationType = "SyncComplete" )
type RawMetadata ¶ added in v0.0.5
type RawMetadata struct { ID string `json:"ID"` Version int `json:"Version"` Message string `json:"Message"` Success bool `json:"Success"` BlobURLGet string `json:"BlobURLGet"` BlobURLGetExpires string `json:"BlobURLGetExpires"` ModifiedClient string `json:"ModifiedClient"` Type common.EntryType `json:"Type"` VissibleName string `json:"VissibleName"` CurrentPage int `json:"CurrentPage"` Bookmarked bool `json:"Bookmarked"` Parent string `json:"Parent"` }
RawMetadata just a raw document, used by the legacy api
type StatusResponse ¶
type StatusResponse struct { ID string `json:"ID"` Message string `json:"Message"` Success bool `json:"Success"` Version int `json:"Version"` }
StatusResponse what else
type SyncCompleted ¶ added in v0.0.5
SyncCompleted sync ended
type SyncCompletedRequestV2 ¶ added in v0.0.10
type SyncCompletedRequestV2 struct {
Generation int64 `json:"generation"`
}
SyncCompleted sync ended
type SyncRootV3 ¶ added in v0.0.14
SyncRootV3
type UploadRequest ¶
type UploadRequest struct { ID string `json:"ID"` Parent string `json:"Parent"` Type string `json:"Type"` Version int `json:"Version"` }
UploadRequest upload reuquest
type UploadResponse ¶
type UploadResponse struct { ID string `json:"ID"` Message string `json:"Mesasge"` Success bool `json:"Success"` BlobURLPut string `json:"BlobURLPut"` BlobURLPutExpires string `json:"BlobURLPutExpires"` Version int `json:"Version"` }
UploadResponse surprise
type WsMessage ¶
type WsMessage struct { Message NotificationMessage `json:"message"` Subscription string `json:"subscription,omitempty"` }
WsMessage websocket notification
Click to show internal directories.
Click to hide internal directories.