websocket

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchNoteFolderData added in v0.4.0

func FetchNoteFolderData() (noteFolderInfo []entity.NoteFolderInfo, currentId int)

func FetchSnippetsData

func FetchSnippetsData() []entity.SnippetInfo

func SwitchNoteFolder added in v0.4.0

func SwitchNoteFolder(id int)

Types

type Message

type Message struct {
	Token string `json:"token"`
	Type  string `json:"type"`
}

type NoteFolderResultMessage added in v0.4.0

type NoteFolderResultMessage struct {
	Type        string                  `json:"type"`
	NoteFolders []entity.NoteFolderInfo `json:"data"`
	CurrentId   int                     `json:"currentId"`
}

type NoteFolderSwitchMessage added in v0.4.0

type NoteFolderSwitchMessage struct {
	Token string `json:"token"`
	Type  string `json:"type"`
	Data  int    `json:"data"`
}

type NoteFolderSwitchResultMessage added in v0.4.0

type NoteFolderSwitchResultMessage struct {
	Type     string `json:"type"`
	Switched bool   `json:"data"`
}

type ResultMessage

type ResultMessage struct {
	Type            string               `json:"type"`
	CommandSnippets []entity.SnippetInfo `json:"data"`
}

Jump to

Keyboard shortcuts

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