internal

package
v1.43.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 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 added in v1.41.1

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 added in v1.41.1

func (DiscardHandler) Handle added in v1.41.1

func (DiscardHandler) WithAttrs added in v1.41.1

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

func (DiscardHandler) WithGroup added in v1.41.1

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