jsonpb

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecoderWrapper

type DecoderWrapper struct {
	*json.Decoder
	protojson.UnmarshalOptions
}

func (DecoderWrapper) Decode

func (d DecoderWrapper) Decode(v interface{}) error

type JSONPb

func (*JSONPb) ContentType

func (*JSONPb) ContentType() string

func (*JSONPb) Delimiter

func (j *JSONPb) Delimiter() []byte

func (*JSONPb) Marshal

func (j *JSONPb) Marshal(v interface{}) ([]byte, error)

func (*JSONPb) NewDecoder

func (j *JSONPb) NewDecoder(r io.Reader) marshaler.Decoder

func (*JSONPb) NewEncoder

func (j *JSONPb) NewEncoder(w io.Writer) marshaler.Encoder

func (*JSONPb) Unmarshal

func (j *JSONPb) Unmarshal(data []byte, v interface{}) error

Jump to

Keyboard shortcuts

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