Documentation ¶
Index ¶
- Variables
- type Codec
- func (e *Codec) Decode(ctx context.Context, streamType string, eventType string, bytes []byte) (event interface{}, err error)
- func (e *Codec) Default(enc es.EncodeFunc, dec es.DecodeFunc)
- func (e *Codec) Encode(ctx context.Context, streamType string, eventType string, event interface{}) (bytes []byte, err error)
- func (e *Codec) Stream(streamType string) *Event
- type Event
- func (ec *Event) Decode(ctx context.Context, eventType string, bytes []byte) (event interface{}, err error)
- func (ec *Event) Default(enc es.EncodeFunc, dec es.DecodeFunc)
- func (ec *Event) Encode(ctx context.Context, eventType string, event interface{}) (bytes []byte, err error)
- func (ec *Event) Event(eventType string, enc es.EncodeFunc, dec es.DecodeFunc) *Event
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
func (*Codec) Default ¶
func (e *Codec) Default(enc es.EncodeFunc, dec es.DecodeFunc)
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) Default ¶
func (ec *Event) Default(enc es.EncodeFunc, dec es.DecodeFunc)
func (*Event) Event ¶
func (ec *Event) Event(eventType string, enc es.EncodeFunc, dec es.DecodeFunc) *Event
Click to show internal directories.
Click to hide internal directories.