structencoder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTagName = "cloudlog"

DefaultTagName defines the default tag name to use

Variables

This section is empty.

Functions

This section is empty.

Types

type StructEncoder

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

StructEncoder implements an encoder which can encode structs using gopkg.in/anexia-it/go-structmapper.v1

func NewStructEncoder

func NewStructEncoder(options ...structmapper.Option) (*StructEncoder, error)

NewStructEncoder returns a new encoder that supports structs

func (*StructEncoder) EncodeEvent

func (e *StructEncoder) EncodeEvent(event interface{}) (m map[string]interface{}, err error)

EncodeEvent encodes the given event

Jump to

Keyboard shortcuts

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