utils

package
v0.0.0-...-4b578d8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlogFields ctxKey = "slog_fields"
)

Variables

This section is empty.

Functions

func AppendCtx

func AppendCtx(parent context.Context, attrs ...slog.Attr) context.Context

AppendCtx adds one or more slog attributes to the provided context so that they will. be included in any Record created with such context.

Types

type ContextHandler

type ContextHandler struct {
	slog.Handler
}

func (ContextHandler) Handle

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

Handle adds contextual attributes to the Record before calling the underlying. handler

Directories

Path Synopsis
Package argon2id provides a simple interface for hashing and verifying passwords using the Argon2id algorithm.
Package argon2id provides a simple interface for hashing and verifying passwords using the Argon2id algorithm.

Jump to

Keyboard shortcuts

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