commands

package
v0.0.0-...-dbf0fce Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SqlDbLoc = "db.db"

Variables

This section is empty.

Functions

func RunCreateMorenoteCommand

func RunCreateMorenoteCommand(publicKey ssh.PublicKey, title string, content string) tea.Cmd

func RunCreateNoteCommand

func RunCreateNoteCommand(publicKey ssh.PublicKey, title string, content string) tea.Cmd

func RunCreateUserCommand

func RunCreateUserCommand(name string, email string, publicKey ssh.PublicKey, authLevel string, redirectIndex int) tea.Cmd

func RunDeleteMorenoteCommand

func RunDeleteMorenoteCommand(publicKey ssh.PublicKey, id int64) tea.Cmd

func RunDeleteNoteCommand

func RunDeleteNoteCommand(publicKey ssh.PublicKey, id int64) tea.Cmd

func RunUpdateMorenoteCommand

func RunUpdateMorenoteCommand(publicKey ssh.PublicKey, id int64, title string, content string) tea.Cmd

func RunUpdateNoteCommand

func RunUpdateNoteCommand(publicKey ssh.PublicKey, id int64, title string, content string) tea.Cmd

func RunUpdateUserRoleCommand

func RunUpdateUserRoleCommand(publicKey ssh.PublicKey, authLevel string, redirectIndex int) tea.Cmd

func SendMorenoteReload

func SendMorenoteReload() tea.Cmd

func SendNoteReload

func SendNoteReload() tea.Cmd

func SendRedirect

func SendRedirect(index int) tea.Cmd

Types

type RedirectMessage

type RedirectMessage struct {
	Tab int
}

type ReloadMorenoteMessage

type ReloadMorenoteMessage struct{}

type ReloadNoteMessage

type ReloadNoteMessage struct{}

type UpdateMessage

type UpdateMessage struct {
	Id               int64
	DataType         string
	Mode             string
	GoodResult       bool
	ErrorDescription string
	RedirectIndex    int
}

Jump to

Keyboard shortcuts

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