format

package
v6.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	String *fmtstr.EventFormatString `config:"string" validate:"required"`
}

type Encoder

type Encoder struct {
	Format *fmtstr.EventFormatString
}

func New

func New(fmt *fmtstr.EventFormatString) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(_ string, event *beat.Event) ([]byte, error)

Jump to

Keyboard shortcuts

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