Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestingMarshalizers = map[string]marshal.Marshalizer{ "json": &JsonMarshalizer{}, "proto": &ProtobufMarshalizer{}, }
TestingMarshalizers -
Functions ¶
This section is empty.
Types ¶
type FormatterStub ¶
type FormatterStub struct {
OutputCalled func(line logger.LogLineHandler) []byte
}
FormatterStub -
func (*FormatterStub) IsInterfaceNil ¶
func (fs *FormatterStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*FormatterStub) Output ¶
func (fs *FormatterStub) Output(line logger.LogLineHandler) []byte
Output -
type JsonMarshalizer ¶
type JsonMarshalizer struct{}
JsonMarshalizer -
func (*JsonMarshalizer) IsInterfaceNil ¶
func (j *JsonMarshalizer) IsInterfaceNil() bool
IsInterfaceNil -
func (JsonMarshalizer) Marshal ¶
func (j JsonMarshalizer) Marshal(obj interface{}) ([]byte, error)
Marshal -
func (JsonMarshalizer) Unmarshal ¶
func (j JsonMarshalizer) Unmarshal(obj interface{}, buff []byte) error
Unmarshal -
type MarshalizerStub ¶
type MarshalizerStub struct { MarshalCalled func(obj interface{}) ([]byte, error) UnmarshalCalled func(obj interface{}, buff []byte) error }
MarshalizerStub -
func (*MarshalizerStub) IsInterfaceNil ¶
func (ms *MarshalizerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*MarshalizerStub) Marshal ¶
func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error)
Marshal -
func (*MarshalizerStub) Unmarshal ¶
func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error
Unmarshal -
type ProtobufMarshalizer ¶
type ProtobufMarshalizer struct{}
ProtobufMarshalizer -
func (*ProtobufMarshalizer) IsInterfaceNil ¶
func (x *ProtobufMarshalizer) IsInterfaceNil() bool
IsInterfaceNil -
func (*ProtobufMarshalizer) Marshal ¶
func (x *ProtobufMarshalizer) Marshal(obj interface{}) ([]byte, error)
Marshal -
func (*ProtobufMarshalizer) Unmarshal ¶
func (x *ProtobufMarshalizer) Unmarshal(obj interface{}, buff []byte) error
Unmarshal -
Click to show internal directories.
Click to hide internal directories.