Documentation
¶
Index ¶
- Variables
- type Document
- type File
- type Library
- func (l *Library) Delete(id uint64) error
- func (l *Library) Find(id uint64) (File, error)
- func (l *Library) GetLocalPath(name string) (string, bool)
- func (l *Library) List(folder string) (List, error)
- func (l *Library) Receive(id uint64, localPath string) (File, error)
- func (l *Library) Reset() error
- func (l *Library) Save(id uint64, dest string) error
- func (l *Library) Send(localPath string, name string, solveConflicts bool, tags ...string) (File, error)
- type List
- type Local
- type State
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var Auto = ""
View Source
var HashChainMaxLength = 128
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Name string `json:"name"` AuthorId string `json:"authorId"` LocalPath string `json:"localPath"` Id uint64 `json:"id"` ModTime time.Time `json:"modTime"` State State `json:"state"` Hash []byte `json:"hash"` HashChain [][]byte `json:"hashChain"` Versions []Version `json:"versions"` }
type File ¶
type File struct { Name string `json:"name"` Id uint64 `json:"id"` ModTime time.Time `json:"modTime"` Size uint64 `json:"size"` AuthorId string `json:"authorId"` ContentType string `json:"contentType"` Hash []byte `json:"hash"` HashChain [][]byte `json:"hashChain"` Tags []string `json:"tags"` CTime int64 }
File includes information about a file stored on the library. Most information refers on the synchronized state with the exchange.
type Library ¶
Click to show internal directories.
Click to hide internal directories.