format

package
v5.6.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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 (w *Encoder) Encode(event common.MapStr) ([]byte, error)

Jump to

Keyboard shortcuts

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