Documentation
¶
Index ¶
- Constants
- type Client
- func (client *Client) Authenticate() error
- func (client *Client) Clear() error
- func (client *Client) Connect(ctx context.Context) error
- func (client *Client) Disconnect() error
- func (client *Client) GetLocalDiffs() []NoteChange
- func (client *Client) GetNoteName(noteID NoteID, content string) string
- func (client *Client) OpenBucket(bucketName string, ctx context.Context) error
- func (client *Client) OpenProjectDir() error
- func (client *Client) RefetchSync(ctx context.Context) error
- func (client *Client) Sync(ctx context.Context) error
- func (client *Client) Upload(ctx context.Context, diffs []NoteChange) error
- type Note
- type NoteChange
- type NoteDiff
- type NoteID
- type NoteResponse
Constants ¶
View Source
const ( CHANGE_VERSION = "cv" AUTH_TOKEN = "tok" )
storage keys
View Source
const API_KEY = "26864ab5d6fd4a37b80343439f107350"
from official Simplenote application
View Source
const APP_ID = "chalk-bump-f49"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.6.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Authenticate ¶ added in v1.6.0
retrieve user authentication token
func (*Client) Disconnect ¶ added in v1.6.0
disconnect from the server websocket
func (*Client) GetLocalDiffs ¶ added in v1.6.0
func (client *Client) GetLocalDiffs() []NoteChange
func (*Client) GetNoteName ¶ added in v1.14.0
given a note id and content string, returns a unique note name identifier if one does not already exist in storage
func (*Client) OpenBucket ¶ added in v1.6.0
authorize access to a given bucket
func (*Client) OpenProjectDir ¶ added in v1.6.0
func (*Client) RefetchSync ¶ added in v1.6.0
initial sync to load (or reload) all notes
type NoteChange ¶ added in v1.13.0
type NoteDiff ¶
type NoteDiff struct { Tags j.JSONDiff[[]string] `json:"tags,omitempty"` Deleted j.BoolJSONDiff `json:"deleted,omitempty"` PublishURL j.StringJSONDiff `json:"publishURL,omitempty"` Content j.StringJSONDiff `json:"content,omitempty"` SystemTags j.JSONDiff[[]string] `json:"systemTags,omitempty"` ModificationDate j.Float32JSONDiff `json:"modificationDate,omitempty"` CreationDate j.Float32JSONDiff `json:"creationDate,omitempty"` }
type NoteResponse ¶ added in v1.12.0
Click to show internal directories.
Click to hide internal directories.