bot

package
v0.0.0-...-aaf77d9 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnkiAgentVersion = 1

	StatsAgentID  = "stats_agent"
	ReviewAgentID = "review_agent"
)
View Source
const (
	ClipboardAgentVersion = 1
	UploadAgentID         = "clipboard_upload"
)
View Source
const (
	DevAgentVersion = 1
	ImportAgentId   = "import_agent"
)
View Source
const ApiURI = "http://localhost:8765"
View Source
const ApiVersion = 6

Variables

This section is empty.

Functions

func AnkiReview

func AnkiReview(c *client.Tinode)

func AnkiStats

func AnkiStats(c *client.Tinode)

func ClipboardUpload

func ClipboardUpload(window fyne.Window, cache *bigcache.BigCache, c *client.Tinode)

func DevImport

func DevImport(c *client.Tinode)

Types

type Param

type Param struct {
	Action  string `json:"action"`
	Version int    `json:"version"`
	Params  any    `json:"params,omitempty"`
}

type Response

type Response struct {
	Error  *string         `json:"error"`
	Result json.RawMessage `json:"result"`
}

Jump to

Keyboard shortcuts

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