noop

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package noop provides no-op implementations to be used in tests and as defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogHandler

type LogHandler struct{}

LogHandler is a no-op implementation of the slog.Handler interface.

func (LogHandler) Enabled

func (LogHandler) Enabled(_ context.Context, _ slog.Level) bool

Enabled implements the slog.Handler interface.

func (LogHandler) Handle

func (LogHandler) Handle(_ context.Context, _ slog.Record) error

Handle implements the slog.Handler interface.

func (LogHandler) WithAttrs

func (h LogHandler) WithAttrs(_ []slog.Attr) slog.Handler

WithAttrs implements the slog.Handler interface.

func (LogHandler) WithGroup

func (h LogHandler) WithGroup(name string) slog.Handler

WithGroup implements the slog.Handler interface.

Jump to

Keyboard shortcuts

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