Documentation
¶
Index ¶
- Constants
- type AuthTokens
- 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 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 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 UploadDocumentRequest ¶
func CreateUploadDocumentRequest ¶
func CreateUploadDocumentRequest(id string, entryType string) UploadDocumentRequest
Click to show internal directories.
Click to hide internal directories.