Documentation
¶
Index ¶
- type Attributes
- type BlobStorageRequest
- type BlobStorageResponse
- type CheckFiles
- type DeviceTokenRequest
- type EndpointsResponse
- type HostResponse
- type IDRequest
- type Integration
- type IntegrationFile
- type IntegrationFolder
- type IntegrationMessageData
- type IntegrationMetadata
- type IntegrationsResponse
- type MissingFiles
- type MissingHashes
- type NotificationMessage
- type NotificationType
- type RawMetadata
- type StatusResponse
- type SyncCompleted
- type SyncCompletedRequestV2
- type SyncRootV3Request
- type SyncRootV3Response
- type SyncRootV4Response
- 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 CheckFiles ¶ added in v0.0.18
type DeviceTokenRequest ¶
type DeviceTokenRequest struct {
Code string `json:"code"`
DeviceDesc string `json:"deviceDesc"`
DeviceID string `json:"deviceID"`
}
DeviceTokenRequest give me token
type EndpointsResponse ¶ added in v0.0.20
type EndpointsResponse struct {
Notifications string `json:"notifications"`
Webapp string `json:"webapp"`
MQTT string `json:"mqttbroker,omitempty"`
}
EndpointReponse endpoint hosts
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"`
ProviderType string `json:"providerType"`
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 int64 `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 IntegrationMessageData ¶ added in v0.0.25
type IntegrationMessageData struct {
Destinations []json.RawMessage `json:"destinations"`
}
type IntegrationMetadata ¶ added in v0.0.8
type IntegrationMetadata struct {
ID string `json:"id"`
Name string `json:"name"`
// Thumbnail is base64 encoded string of an image/png
Thumbnail []byte `json:"thumbnail"`
SourceFileType string `json:"sourceFileType"`
ProvidedFileType string `json:"providedFileType"`
FileType string `json:"fileType"`
}
type IntegrationsResponse ¶ added in v0.0.5
type IntegrationsResponse struct {
Integrations []Integration `json:"integrations"`
}
IntegrationsResponse integrations
type MissingFiles ¶ added in v0.0.18
type MissingFiles struct {
MissingFiles []string `json:"missingFiles"`
}
type MissingHashes ¶ added in v0.0.18
type MissingHashes struct {
Hashes []string `json:"hashes"`
}
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 SyncRootV3Request ¶ added in v0.0.20
type SyncRootV3Request struct {
Generation int64 `json:"generation"`
Hash string `json:"hash,omitempty"`
Broadcast bool `json:"broadcast"`
}
SyncRootV3Request
type SyncRootV3Response ¶ added in v0.0.20
type SyncRootV3Response struct {
Generation int64 `json:"generation"`
Hash string `json:"hash,omitempty"`
}
SyncRootV3Response
type SyncRootV4Response ¶ added in v0.0.20
type SyncRootV4Response struct {
Generation int64 `json:"generation"`
Hash string `json:"hash,omitempty"`
SchemaVersion int64 `json:"schemaVersion"`
}
SyncRootV4Response
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