core

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 Initialize added in v0.4.0

func Initialize(_ map[string]any, registry *wrapper.Registry)

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

func NewDefaultLoggingHandler(opts map[string]any) slog.Handler

func NewHttpHook added in v0.6.0

func NewHttpHook(options map[string]any) wrapper.Hook

func NewHttpLoggingHandler added in v0.6.0

func NewHttpLoggingHandler(opts map[string]any) slog.Handler

Types

type HttpHook added in v0.6.0

type HttpHook struct {
	Url string `mapstructure:"url,omitempty"`
}

func (*HttpHook) Execute added in v0.6.0

func (hook *HttpHook) Execute(parent context.Context, data []byte) error

type HttpLoggingHandler added in v0.6.0

type HttpLoggingHandler struct {
	Url   string     `mapstructure:"url,omitempty"`
	Level slog.Level `mapstructure:"level,omitempty"`
}

func (*HttpLoggingHandler) Enabled added in v0.6.0

func (handler *HttpLoggingHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*HttpLoggingHandler) Handle added in v0.6.0

func (handler *HttpLoggingHandler) Handle(parent context.Context, record slog.Record) error

func (*HttpLoggingHandler) WithAttrs added in v0.6.0

func (handler *HttpLoggingHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*HttpLoggingHandler) WithGroup added in v0.6.0

func (handler *HttpLoggingHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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