handler

package
v0.0.0-...-d95efa9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonHandler

type CommonHandler struct {
	slog.Handler
}

func NewCommonHandler

func NewCommonHandler(out io.Writer, opts CommonHandlerOpts) *CommonHandler

func (*CommonHandler) Handle

func (h *CommonHandler) Handle(ctx context.Context, r slog.Record) error

type CommonHandlerOpts

type CommonHandlerOpts struct {
	Opts slog.HandlerOptions
}

type TerminalHandler

type TerminalHandler struct {
	slog.Handler
	// contains filtered or unexported fields
}

func NewTerminalHandler

func NewTerminalHandler(
	out io.Writer,
	opts TerminalHandlerOptions,
) *TerminalHandler

func (*TerminalHandler) Handle

func (h *TerminalHandler) Handle(ctx context.Context, r slog.Record) error

type TerminalHandlerOptions

type TerminalHandlerOptions struct {
	Opts slog.HandlerOptions
}

Jump to

Keyboard shortcuts

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