authlog

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package authlog provides the legacy bounded authorization slog adapter.

Deprecated: use github.com/faustbrian/go-authorization/v2/adapters/slog. This package remains supported for the longer of 180 days after successor public availability and two subsequently published stable root-module minor releases.

Index

Constants

This section is empty.

Variables

View Source
var ErrNilLogger = adapter.ErrNilLogger

Functions

This section is empty.

Types

type Instrumenter

type Instrumenter struct {
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, level slog.Level) (*Instrumenter, error)

func (*Instrumenter) Begin

func (instrumenter *Instrumenter) Begin(
	ctx context.Context,
) (context.Context, func(authorization.Event))

Begin starts one bounded authorization audit observation.

func (*Instrumenter) Start

func (instrumenter *Instrumenter) Start(
	ctx context.Context,
) (context.Context, func(authorization.Event))

Jump to

Keyboard shortcuts

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