event

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auditor

type Auditor interface {
	// Emit an event to the auditor
	Event(ctx context.Context, eventType string, payload interface{}) error

	// Specifies if the auditor is enabled or not
	Enabled() bool

	// Reopen signals to auditor to reopen any files they have open.
	Reopen() error

	// SetEnabled sets the auditor to enabled or disabled.
	SetEnabled(enabled bool)

	// DeliveryEnforced returns whether or not delivery of an audit
	// log must be enforced
	DeliveryEnforced() bool
}

Auditor describes the interface that must be implemented by an eventer.

Jump to

Keyboard shortcuts

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