codec

package
v0.0.0-...-77bf602 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "json"

Name is the name registered for the json codec.

Variables

View Source
var (
	// MarshalOptions is a configurable JSON format marshaller.
	MarshalOptions protojson.MarshalOptions
	// UnmarshalOptions is a configurable JSON format parser.
	UnmarshalOptions protojson.UnmarshalOptions
)

Functions

This section is empty.

Types

type JsonCodec

type JsonCodec struct{}

JsonCodec is a Codec implementation with json.

func (JsonCodec) Marshal

func (JsonCodec) Marshal(v interface{}) ([]byte, error)

func (JsonCodec) Name

func (JsonCodec) Name() string

func (JsonCodec) Unmarshal

func (JsonCodec) Unmarshal(data []byte, v interface{}) error

Jump to

Keyboard shortcuts

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