client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 11 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 {
	URL string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string, token *oauth2.Token) *Client

func (*Client) CreateNote

func (c *Client) CreateNote(title string) (*notes.Note, error)

func (*Client) DeleteNote

func (c *Client) DeleteNote(id int64) error

func (*Client) GetNote

func (c *Client) GetNote(id int64) (*notes.Note, error)

func (*Client) GetNoteContent

func (c *Client) GetNoteContent(id int64) ([]byte, error)

func (*Client) ListNotes

func (c *Client) ListNotes() ([]*notes.Note, error)

func (*Client) UpdateNote

func (c *Client) UpdateNote(id int64, title string) error

func (*Client) UpdateNoteContent

func (c *Client) UpdateNoteContent(id int64, content []byte) error

Jump to

Keyboard shortcuts

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