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
Click to show internal directories.
Click to hide internal directories.