Documentation
¶
Overview ¶
Package authlog provides the legacy bounded authorization slog adapter.
Deprecated: use github.com/faustbrian/go-authorization/v3/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
ErrNilLogger preserves the direct adapter error identity for errors.Is.
Functions ¶
This section is empty.
Types ¶
type Instrumenter ¶
type Instrumenter struct {
// contains filtered or unexported fields
}
Instrumenter retains the released logger/level layout and borrows sink lifecycle.
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))
Start delegates to the repeatable Begin log callback.
Click to show internal directories.
Click to hide internal directories.