Documentation ¶
Overview ¶
Package fake provides a fake audit.Backend interface implementation for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
OnRequest func(events []*auditinternal.Event)
}
Backend is a fake audit backend for testing purposes.
func (*Backend) ProcessEvents ¶
func (b *Backend) ProcessEvents(ev ...*auditinternal.Event) bool
ProcessEvents calls a callback on a batch, if present.
Click to show internal directories.
Click to hide internal directories.