protobuf

package
v0.0.0-...-660a5ed Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FmtPB

type FmtPB struct{}

FmtPB struct is a placeholder LogFormatter to seamlessly convert protobuf messages into byte slices for data transmission

func (*FmtPB) Format

func (f *FmtPB) Format(log *event.Event) (buf []byte, err error)

Format method will take in a pointer to an event.Event; and returns a slice of bytes and an error.

This method will process the input event.Event and marshal it according to this LogFormatter

Jump to

Keyboard shortcuts

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