Documentation
¶
Overview ¶
Package authorizationslog emits bounded authorization audit events through log/slog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilLogger = errors.New("authorization audit logger is nil")
ErrNilLogger reports that New received no logger.
Functions ¶
This section is empty.
Types ¶
type Instrumenter ¶
type Instrumenter struct {
// contains filtered or unexported fields
}
Instrumenter emits a bounded structured audit record for each completed observation. The caller retains ownership of the logger and its handler.
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 Begin for compatibility with authorization.Instrumenter.
Click to show internal directories.
Click to hide internal directories.