commands

package
v0.0.0-...-d96c5bb Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientCommandList = map[string]og.RequestHandler{
	"AddClient":             AddClient,
	"AuthClient":            AuthClient,
	"GetPasswordProperties": GetPasswordProperties,
	"♥":                     HeartbeatHandler,
}
View Source
var ConsoleCommandList = map[string]og.RequestHandler{
	"AddConsole":            AddConsole,
	"AddUser":               AddUser,
	"AuthConsole":           AuthConsole,
	"GetPasswordProperties": GetPasswordProperties,
}

Functions

func AddClient

func AddClient(msg *og.Message, state *og.StateData) (*og.Message, error)

func AddConsole

func AddConsole(msg *og.Message, state *og.StateData) (*og.Message, error)

func AddUser

func AddUser(msg *og.Message, state *og.StateData) (*og.Message, error)

func AuthClient

func AuthClient(msg *og.Message, state *og.StateData) (*og.Message, error)

func AuthConsole

func AuthConsole(msg *og.Message, state *og.StateData) (*og.Message, error)

func AuthUser

func AuthUser(msg *og.Message, state *og.StateData) (*og.Message, error)

func CheckReqFields

func CheckReqFields(msg *og.Message, names ...string) *og.Message

CheckReqFields returns a failure response if a field is missing

func GetPasswordProperties

func GetPasswordProperties(msg *og.Message, state *og.StateData) (*og.Message, error)

func HeartbeatHandler

func HeartbeatHandler(msg *og.Message, state *og.StateData) (*og.Message, error)

func RequireSource

func RequireSource(msg *og.Message, state *og.StateData, source string) *og.Message

RequireSource returns a failure response if a field is missing

Types

This section is empty.

Jump to

Keyboard shortcuts

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