core

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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