note

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNote

func CreateNote(ac *client.AlpaconClient, noteRequest NoteCreateRequest) error

func DeleteNote

func DeleteNote(ac *client.AlpaconClient, noteID string) error

Types

type NoteCreateRequest

type NoteCreateRequest struct {
	Server  string `json:"server"`
	Content string `json:"content"`
	Private bool   `json:"private"`
	Pinned  bool   `json:"pinned"`
}

type NoteDetails

type NoteDetails struct {
	ID      string `json:"id"`
	Server  string `json:"server"`
	Author  string `json:"author"`
	Content string `json:"content"`
	Private bool   `json:"private"`
}

func GetNoteList

func GetNoteList(ac *client.AlpaconClient, serverName string, pageSize int) ([]NoteDetails, error)

Jump to

Keyboard shortcuts

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