messages

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

View Source
const (
	Info    = "info"
	Success = "success"
	Warning = "warning"
	Error   = "error"
)

Variables

This section is empty.

Functions

func Listen

func Listen(callback func(typ string, message string))

func ListenFor

func ListenFor(typ MessageType, callback func(message string))

func ListenForError

func ListenForError(callback func(message string))

func ListenForInfo

func ListenForInfo(callback func(message string))

func ListenForSuccess

func ListenForSuccess(callback func(message string))

func ListenForWarning

func ListenForWarning(callback func(message string))

func SendError

func SendError(message string)

func SendInfo

func SendInfo(message string)

func SendMessage

func SendMessage(typ, message string)

func SendSuccess

func SendSuccess(message string)

func SendWarning

func SendWarning(message string)

Types

type MessageType

type MessageType string

Jump to

Keyboard shortcuts

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