sink

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenericSink

func NewGenericSink(name string, consumer func(ev audit.Event)) audit.Sink

func NewLogSink

func NewLogSink(logger logging.Logger) audit.Sink

func NewMetricSink

func NewMetricSink() (sink audit.Sink, err error)

func NewNoOpSink

func NewNoOpSink(name string) audit.Sink

func NewWriterSink

func NewWriterSink(name string, target audit.Writer, opts ...WriterSinkOption) audit.Sink

Types

type WriterSinkOption

type WriterSinkOption func(sink *writerCloserSink)
var WithCloseOnExit WriterSinkOption = func(sink *writerCloserSink) {
	sink.closeOnExit = true
}

Jump to

Keyboard shortcuts

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