codec

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorageWriterProxy

func NewStorageWriterProxy(backend io.WriteCloser) storage.Writer

NewStorageWriterProxy Creates a storage writer that proxies to a traditional writer and drops the metadata.

Types

type Decoder

type Decoder interface {
	Decode(reader io.Reader) (<-chan message.Message, <-chan error)
}

Decoder is a module that is resonsible for decoding a binary data stream into audit log messages.

type Encoder

type Encoder interface {
	// Encode takes messages from a the messages channel, encodes them in the desired format, and writes them to
	//        storage. When the messages channel is closed it will also close the storage writer.
	Encode(messages <-chan message.Message, storage storage.Writer) error
	// GetMimeType returns the MIME type of this format
	GetMimeType() string
	// GetFileExtension returns the desired file extension for this format
	GetFileExtension() string
}

Encoder is a module that is responsible for receiving audit log messages and writing them to a writer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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