note

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func GetNoteDetail added in v1.2.0

func GetNoteDetail(ac *client.AlpaconClient, noteID string) ([]byte, error)

func UpdateNote added in v1.2.0

func UpdateNote(ac *client.AlpaconClient, noteID string) ([]byte, 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"`
}

NoteDetails is the display type for PrintTable.

func GetNoteList

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

type NoteResponse added in v1.2.0

type NoteResponse struct {
	ID      string              `json:"id"`
	Server  types.ServerSummary `json:"server"`
	Author  types.UserSummary   `json:"author"`
	Content string              `json:"content"`
	Private bool                `json:"private"`
}

NoteResponse is the API response type where Server and Author are nested objects.

Jump to

Keyboard shortcuts

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