Documentation
¶
Index ¶
- Variables
- func Initialize(_ map[string]any, registry *wrapper.Registry)
- func NewCorePlayersService() *corePlayersService
- func NewCoreProcessService() *coreProcessService
- func NewCoreSystemService() *coreSystemService
- func NewDefaultLoggingHandler(opts map[string]any) slog.Handler
- func NewHttpHook(options map[string]any) wrapper.Hook
- func NewHttpLoggingHandler(opts map[string]any) slog.Handler
- type HttpHook
- type HttpLoggingHandler
- func (handler *HttpLoggingHandler) Enabled(ctx context.Context, level slog.Level) bool
- func (handler *HttpLoggingHandler) Handle(parent context.Context, record slog.Record) error
- func (handler *HttpLoggingHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (handler *HttpLoggingHandler) WithGroup(name string) slog.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LevelDebug = slog.LevelDebug LevelInfo = slog.LevelInfo LevelWarn = slog.LevelWarn LevelError = slog.LevelError LevelProcess = slog.Level(12) )
Functions ¶
func NewCorePlayersService ¶ added in v0.2.0
func NewCorePlayersService() *corePlayersService
func NewCoreProcessService ¶
func NewCoreProcessService() *coreProcessService
func NewCoreSystemService ¶
func NewCoreSystemService() *coreSystemService
func NewDefaultLoggingHandler ¶ added in v0.6.0
Types ¶
type HttpLoggingHandler ¶ added in v0.6.0
type HttpLoggingHandler struct { Url string `mapstructure:"url,omitempty"` Level slog.Level `mapstructure:"level,omitempty"` }
Click to show internal directories.
Click to hide internal directories.