http

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEntryService

func NewLogEntryService(client *Client) storage.LogEntryService

func NewLogNoteService

func NewLogNoteService(client *Client) storage.LogNoteService

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(serverAddr string, serverAuthToken string) *Client

type LogEntryHttpService

type LogEntryHttpService struct {
	// contains filtered or unexported fields
}

LogEntryHttpService implements storage.LogEntryService

func (*LogEntryHttpService) Add

func (s *LogEntryHttpService) Add(entry models.LogEntry) (int64, error)

func (*LogEntryHttpService) Delete

func (s *LogEntryHttpService) Delete(id int64) error

func (*LogEntryHttpService) GetTree added in v0.0.12

func (s *LogEntryHttpService) GetTree(ctx context.Context, id int64, includeHistory bool) ([]models.LogEntry, error)

func (*LogEntryHttpService) List

func (*LogEntryHttpService) Move

func (s *LogEntryHttpService) Move(id int64, newParentID int64) error

func (*LogEntryHttpService) Update

func (s *LogEntryHttpService) Update(id int64, update models.LogEntryOptional) error

type LogNoteHttpService

type LogNoteHttpService struct {
	// contains filtered or unexported fields
}

LogNoteHttpService implements storage.LogNoteService

func (*LogNoteHttpService) Add

func (s *LogNoteHttpService) Add(entryID int64, note models.Note) (int64, error)

func (*LogNoteHttpService) Delete

func (s *LogNoteHttpService) Delete(entryID int64, noteID int64) error

func (*LogNoteHttpService) List

func (s *LogNoteHttpService) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)

func (*LogNoteHttpService) ListForEntries

func (s *LogNoteHttpService) ListForEntries(entryIDs []int64) (map[int64][]models.Note, error)

func (*LogNoteHttpService) Update

func (s *LogNoteHttpService) Update(entryID int64, noteID int64, update models.NoteOptional) error

type ServerResponse

type ServerResponse struct {
	Code int             `json:"code"`
	Msg  string          `json:"msg"`
	Data json.RawMessage `json:"data"`
}

ServerResponse wraps all server responses

Jump to

Keyboard shortcuts

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