json

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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