Documentation ¶
Index ¶
- Constants
- type AuthTokens
- type BlobRootStorageRequest
- type BlobStorageRequest
- type BlobStorageResponse
- type DeleteDocument
- type DeviceTokenRequest
- type Document
- type MetadataDocument
- type Node
- func (node *Node) EntyExists(id string) bool
- func (node *Node) FindByName(name string) (*Node, error)
- func (node *Node) Id() string
- func (node *Node) IsDirectory() bool
- func (node *Node) IsFile() bool
- func (node *Node) IsRoot() bool
- func (node *Node) LastModified() (time.Time, error)
- func (node *Node) Name() string
- func (node *Node) Version() int
- type SyncCompletedRequest
- type UploadDocumentRequest
- type UploadDocumentResponse
Constants ¶
View Source
const ( DirectoryType = "CollectionType" DocumentType = "DocumentType" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokens ¶
type BlobRootStorageRequest ¶ added in v0.0.22
type BlobStorageRequest ¶ added in v0.0.16
type BlobStorageRequest struct { Method string `json:"http_method"` Initial bool `json:"initial_sync,omitempty"` RelativePath string `json:"relative_path"` ParentPath string `json:"parent_path,omitempty"` }
BlobStorageRequest request
type BlobStorageResponse ¶ added in v0.0.16
type BlobStorageResponse struct { Expires string `json:"expires"` Method string `json:"method"` RelativePath string `json:"relative_path"` Url string `json:"url"` MaxUploadSizeBytes int64 `json:"maxuploadsize_bytes,omitifempty"` }
BlobStorageResponse response
type DeleteDocument ¶
type DeviceTokenRequest ¶
type Document ¶
type Document struct { ID string Version int Message string Success bool BlobURLGet string BlobURLGetExpires string ModifiedClient string Type string VissibleName string CurrentPage int Bookmarked bool Parent string }
func (Document) ToDeleteDocument ¶
func (doc Document) ToDeleteDocument() DeleteDocument
func (Document) ToMetaDocument ¶
func (doc Document) ToMetaDocument() MetadataDocument
type MetadataDocument ¶
type MetadataDocument struct { ID string Parent string VissibleName string Type string Version int ModifiedClient string }
func CreateDirDocument ¶
func CreateDirDocument(parent, name string) MetadataDocument
func CreateUploadDocumentMeta ¶
func CreateUploadDocumentMeta(id string, entryType, parent, name string) MetadataDocument
func (MetadataDocument) ToDocument ¶
func (meta MetadataDocument) ToDocument() Document
type SyncCompletedRequest ¶ added in v0.0.22
type SyncCompletedRequest struct {
Generation int64 `json:"generation"`
}
SyncCompleteRequest payload of the sync completion
type UploadDocumentRequest ¶
func CreateUploadDocumentRequest ¶
func CreateUploadDocumentRequest(id string, entryType string) UploadDocumentRequest
Click to show internal directories.
Click to hide internal directories.