jsonline

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONToDictionary

func JSONToDictionary(jsonline []byte) (model.Dictionary, error)

JSONToDictionary return a model.Dictionary from a jsonline

func JSONToPackedDictionary added in v1.19.0

func JSONToPackedDictionary(jsonline []byte) (model.Dictionary, error)

JSONToPackedDictionary return a packed model.Dictionary from a jsonline

func NewPackedSource added in v1.19.0

func NewPackedSource(file io.Reader) model.Source

NewPackedSource creates a new packed Source.

func NewSink

func NewSink(file io.Writer) model.SinkProcess

NewSink creates a new Sink.

func NewSinkWithContext added in v1.4.0

func NewSinkWithContext(file io.Writer, counter string) model.SinkProcess

NewSinkWithContext creates a new Sink.

func NewSource

func NewSource(file io.Reader) model.Source

NewSource creates a new Source.

Types

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

func (Sink) Open

func (s Sink) Open() error

func (Sink) ProcessDictionary

func (s Sink) ProcessDictionary(dictionary model.Entry) error

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source export line to JSON format.

func (*Source) Err

func (s *Source) Err() error

func (*Source) Next

func (s *Source) Next() bool

Next convert next line to model.Dictionary

func (*Source) Open

func (s *Source) Open() error

func (*Source) Value

func (s *Source) Value() model.Entry

Jump to

Keyboard shortcuts

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