output

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableAuditWriters

func GetAvailableAuditWriters() []string

GetAvailableAuditWriters returns an array of audit writer names as strings

Types

type AuditWriter

type AuditWriter struct {
	// contains filtered or unexported fields
}

AuditWriter is the class that encapsulates the io.Writer for output

func CreateAuditWriter

func CreateAuditWriter(auditWriterName string, config *viper.Viper) (*AuditWriter, error)

CreateAuditWriter creates an audit writer with the type specified by the name, the viper config is passed down to the audit writer factory method. It returns an audit writer or an error

func NewAuditWriter

func NewAuditWriter(w io.Writer, attempts int) *AuditWriter

NewAuditWriter creates a generic auditwriter which encapsulates a io.Writer

func (*AuditWriter) Write

func (a *AuditWriter) Write(msg *parser.AuditMessageGroup) (err error)

type AuditWriterFactory

type AuditWriterFactory func(conf *viper.Viper) (*AuditWriter, error)

AuditWriterFactory is the that represents a function that is a audit writer factory

type HTTPWriter

type HTTPWriter struct {
	ResponseBodyTransformer httptransformer.ResponseBodyTransformer
	// contains filtered or unexported fields
}

HTTPWriter is the class that encapsulates the http output plugin

func (*HTTPWriter) Process

func (w *HTTPWriter) Process(ctx context.Context)

Process blocks and listens for messages in the channel

func (*HTTPWriter) Write

func (w *HTTPWriter) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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