event

package
v0.0.0-...-ddfd2c2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelTodo     = 0
	LevelInfo     = 1
	LevelWarn     = 2
	LevelError    = 3
	LevelSecurity = 4
)
View Source
const (
	FormatJson  = 1
	FormatField = 2
)

Variables

This section is empty.

Functions

func Add

func Add(level int, title, message string)

记录事件 message 支持 Markdown 语法

func Error

func Error(title, message string)

func Info

func Info(title, message string)

func NewEventHook

func NewEventHook(format int) *eventHook

func Security

func Security(title, message string)

func Todo

func Todo(title, message string)

func Warn

func Warn(title, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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