bot

package
v0.0.0-...-fe20bed Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 11 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.Flowbot)

func AnkiStats

func AnkiStats(c *client.Flowbot)

func ClipboardUpload

func ClipboardUpload(cache *bigcache.BigCache, c *client.Flowbot)

func DevImport

func DevImport(c *client.Flowbot)

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