Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
Encoder turns a message into a raw byte array ready to be sent.
var JSONEncoder Encoder = &jsonEncoder{}
JSONEncoder is a shared json encoder.
var JSONServerlessEncoder Encoder = &jsonServerlessEncoder{}
JSONServerlessEncoder is a shared json encoder sending a struct message field instead of a bytes message field. This encoder is used in the AWS Lambda serverless environment.
var ProtoEncoder Encoder = &protoEncoder{}
ProtoEncoder is a shared proto encoder.
var RawEncoder Encoder = &rawEncoder{}
RawEncoder is a shared raw encoder.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
A Processor updates messages from an inputChan and pushes in an outputChan.
func New ¶
func New(inputChan, outputChan chan *message.Message, processingRules []*logsconfig.ProcessingRule, encoder Encoder, diagnosticMessageReceiver diagnostic.MessageReceiver) *Processor
New returns an initialized Processor.
Click to show internal directories.
Click to hide internal directories.