Documentation ¶ Index ¶ type Client func NewClient(baseURL string, verifyTLS bool) *Client func (c *Client) GetOrCreateNote(ctx context.Context, passphrase []byte) (*Note, error) func (c *Client) Health(ctx context.Context) error func (c *Client) UpdateNote(ctx context.Context, passphrase []byte, message string) (*Note, error) type Note Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { BaseURL string VerifyTLS bool // contains filtered or unexported fields } func NewClient ¶ func NewClient(baseURL string, verifyTLS bool) *Client func (*Client) GetOrCreateNote ¶ func (c *Client) GetOrCreateNote(ctx context.Context, passphrase []byte) (*Note, error) func (*Client) Health ¶ func (c *Client) Health(ctx context.Context) error func (*Client) UpdateNote ¶ func (c *Client) UpdateNote(ctx context.Context, passphrase []byte, message string) (*Note, error) type Note ¶ type Note struct { ID string `json:"id"` Message string `json:"message"` HasImage bool `json:"hasImage"` Created any `json:"created"` Updated any `json:"updated"` } Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.