js

package
v0.0.0-...-fa5e208 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInput = errors.New("invalid input")

Functions

func UnmarshalNext

func UnmarshalNext(d *json.Decoder, m proto.Message) error

Types

type JSONArrayReader

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

func NewJSONArrayReader

func NewJSONArrayReader(r io.Reader) (*JSONArrayReader, error)

func (*JSONArrayReader) Read

func (r *JSONArrayReader) Read(message any) error

func (*JSONArrayReader) ReadProtoMessage

func (r *JSONArrayReader) ReadProtoMessage(message proto.Message) error

reads next json object as proto message returns io.EOF at the end of the input stream.

type JSONArrayWriter

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

func NewJSONArrayWriter

func NewJSONArrayWriter(w io.Writer) *JSONArrayWriter

func (*JSONArrayWriter) Close

func (w *JSONArrayWriter) Close() error

func (*JSONArrayWriter) Write

func (w *JSONArrayWriter) Write(message any) error

func (*JSONArrayWriter) WriteProtoMessage

func (w *JSONArrayWriter) WriteProtoMessage(message protoreflect.ProtoMessage) error

Jump to

Keyboard shortcuts

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