api

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL