Versions in this module Expand all Collapse all v0 v0.1.1 Dec 4, 2023 v0.1.0 Jul 23, 2023 Changes in this version + var ErrEmptyNoteID = errors.New("note ID cannot be empty") + var ErrInvalidNote = errors.New("note is invalid") + var ErrInvalidPassword = errors.New("note password is invalid") + var Headers = http.Header + var TLSClientOptions = []tls_client.HttpClientOption + type Client struct + BaseURL string + HTTPClient tls_client.HttpClient + func NewClient() *Client + func (c *Client) CreateNote(noteData CreateNoteData) (string, error) + func (c *Client) ReadNoteFromID(noteID, password string) (string, error) + func (c *Client) ReadNoteFromLink(noteLink string) (string, error) + type CreateNoteData struct + Data string + Duration time.Duration + EmailRefName string + NoConfirmation bool + NotifyEmail string + Password string + type Note struct + Data string + DontAsk bool + ExpiresJS string + HasManualPass bool + NoteLink string + Policy int + func (n *Note) UnmarshalJSON(data []byte) error