Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MXPGVKEventDecoder ¶
type MXPGVKEventDecoder struct {
// contains filtered or unexported fields
}
MXPGVKEventDecoder decodes MXP GVK events from a reader containing a JSON array of event objects. Must be initialized with NewMXPGVKEventDecoder().
func NewMXPGVKEventDecoder ¶
func NewMXPGVKEventDecoder(r io.Reader) (*MXPGVKEventDecoder, error)
NewMXPGVKEventDecoder returns an initialized *Decoder.
func (*MXPGVKEventDecoder) Decode ¶
func (d *MXPGVKEventDecoder) Decode() (model.MXPGVKEvent, error)
Decode returns the next MXP GVK event from input.
func (*MXPGVKEventDecoder) More ¶
func (d *MXPGVKEventDecoder) More() bool
More returns true if there is more input to be decoded.
type MXPGVKEventEncoder ¶
type MXPGVKEventEncoder struct {
// contains filtered or unexported fields
}
MXPGVKEventEncoder encodes MXP GVK events as a JSON array of event objects to a writer. Must be initialized with NewMXPGVKEventEncoder(). Callers must call Close() when finished encoding.
func NewMXPGVKEventEncoder ¶
func NewMXPGVKEventEncoder(w io.Writer) (*MXPGVKEventEncoder, error)
NewMXPGVKEventEncoder returns an initialized *Encoder.
func (*MXPGVKEventEncoder) Close ¶
func (e *MXPGVKEventEncoder) Close() error
Close closes the encoder.
func (*MXPGVKEventEncoder) Encode ¶
func (e *MXPGVKEventEncoder) Encode(event model.MXPGVKEvent) error
Encode encodes and writes an MXP GVK event.
Click to show internal directories.
Click to hide internal directories.