internal

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferPool = sync.Pool{
	New: func() any {
		return bytes.NewBuffer(make([]byte, 0, 256))
	},
}

BufferPool is a sync.Pool for buffers used to write compressed data to.

Functions

This section is empty.

Types

type DiscardHandler

type DiscardHandler struct{}

DiscardHandler implements a slog.Handler that is always disabled. Each of its methods return immediately without any code running.

func (DiscardHandler) Enabled

func (DiscardHandler) Handle

func (DiscardHandler) WithAttrs

func (d DiscardHandler) WithAttrs([]slog.Attr) slog.Handler

func (DiscardHandler) WithGroup

func (d DiscardHandler) WithGroup(string) slog.Handler

Jump to

Keyboard shortcuts

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