Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { UUID string `storm:"id,unique"` Content string ContentType string `storm:"index"` EncItemKey string Deleted bool `storm:"index"` CreatedAt string UpdatedAt string Dirty bool DirtiedDate time.Time }
func ConvertItemsToPersistItems ¶
func ConvertItemsToPersistItems(items gosn.EncryptedItems) (pitems []Item)
type SyncInput ¶
type SyncInput struct { Session gosn.Session DB *storm.DB // pointer to an existing DB DBPath string // path to create new DB }
type SyncOutput ¶
type SyncOutput struct {
Items, SavedItems, Unsaved gosn.EncryptedItems // only used for testing purposes!?
//syncToken, cursorToken string // only used for testing purposes!?
DB *storm.DB // pointer to DB (same if passed in SyncInput, new if called without existing)
}
func Sync ¶
func Sync(si SyncInput) (so SyncOutput, err error)
Click to show internal directories.
Click to hide internal directories.