config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName    = "gin-stater"
	AppVersion = "0.0.1"
)
View Source
const (
	// execute host command on local machine
	EVT_CLIENT_INIT types.UserDefinedEvent = iota
	EVT_CLIENT_CLOSE
)
View Source
const (
	// 定义可预见的异常
	UserNotFound = 10001
)

Variables

View Source
var ErrorCodeMapping = map[int]string{
	UserNotFound: "用户不存在",
}
View Source
var SentryEventsMeta = types.UserDefinedEventMap{
	EVT_CLIENT_INIT:  {Name: "evt_client_init", Level: slog.LevelInfo, Group: "sys"},
	EVT_CLIENT_CLOSE: {Name: "evt_client_close", Level: slog.LevelInfo, Group: "sys"},
}

Functions

This section is empty.

Types

type MyAppConfig added in v0.0.2

type MyAppConfig struct {
	Basic types.AppConfig `yaml:"basic"`
}

Jump to

Keyboard shortcuts

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