Versions in this module Expand all Collapse all v0 v0.6.2 Apr 9, 2019 v0.6.1 Apr 1, 2019 v0.6.0 Mar 31, 2019 Changes in this version + var ErrInvalidLogin = errors.New("wrong credentials") + func Signout(ctx infra.DnoteCtx, sessionKey string) error + type PresigninResponse struct + Iteration int + func GetPresignin(ctx infra.DnoteCtx, email string) (PresigninResponse, error) + type SigninPayload struct + AuthKey string + Email string + type SigninResponse struct + CipherKeyEnc string + ExpiresAt int64 + Key string + func Signin(ctx infra.DnoteCtx, email, authKey string) (SigninResponse, error) v0.5.0 Jan 1, 2019 Changes in this version type CreateNotePayload + Body string type RespNote + Body string type SyncFragNote + Body string v0.4.9 Dec 2, 2018 Changes in this version + type CreateBookPayload struct + Name string + type CreateBookResp struct + Book RespBook + func CreateBook(ctx infra.DnoteCtx, apiKey, label string) (CreateBookResp, error) + type CreateNotePayload struct + BookUUID string + Content string + type CreateNoteResp struct + Result RespNote + func CreateNote(ctx infra.DnoteCtx, apiKey, bookUUID, content string) (CreateNoteResp, error) + type DeleteBookResp struct + Book RespBook + Status int + func DeleteBook(ctx infra.DnoteCtx, apiKey, uuid string) (DeleteBookResp, error) + type DeleteNoteResp struct + Result RespNote + Status int + func DeleteNote(ctx infra.DnoteCtx, apiKey, uuid string) (DeleteNoteResp, error) + type GetBooksResp []struct + func GetBooks(ctx infra.DnoteCtx, apiKey string) (GetBooksResp, error) + type GetSyncFragmentResp struct + Fragment SyncFragment + func GetSyncFragment(ctx infra.DnoteCtx, apiKey string, afterUSN int) (GetSyncFragmentResp, error) + type GetSyncStateResp struct + CurrentTime int64 + FullSyncBefore int + MaxUSN int + func GetSyncState(apiKey string, ctx infra.DnoteCtx) (GetSyncStateResp, error) + type RespBook struct + CreatedAt time.Time + ID int + Label string + USN int + UUID string + UpdatedAt time.Time + type RespNote struct + AddedOn int64 + Book respNoteBook + Content string + CreatedAt time.Time + Public bool + USN int + UUID string + UpdatedAt time.Time + User respNoteUser + type SyncFragBook struct + AddedOn int64 + CreatedAt time.Time + Deleted bool + Label string + USN int + UUID string + UpdatedAt time.Time + type SyncFragNote struct + AddedOn int64 + BookUUID string + Content string + CreatedAt time.Time + Deleted bool + EditedOn int64 + Public bool + USN int + UUID string + UpdatedAt time.Time + type SyncFragment struct + Books []SyncFragBook + CurrentTime int64 + ExpungedBooks []string + ExpungedNotes []string + FragMaxUSN int + Notes []SyncFragNote + UserMaxUSN int + type UpdateBookResp struct + Book RespBook + func UpdateBook(ctx infra.DnoteCtx, apiKey, label, uuid string) (UpdateBookResp, error) + type UpdateNoteResp struct + Result RespNote + Status int + func UpdateNote(ctx infra.DnoteCtx, apiKey, uuid, bookUUID, content string, public bool) (UpdateNoteResp, error)