jsonpb

package module
v3.10.6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

README

micro-codec-json

Documentation

Overview

Package jsonpb provides a json protobuf codec

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMarshalOptions = jsonpb.MarshalOptions{
		UseEnumNumbers:  false,
		EmitUnpopulated: false,
		UseProtoNames:   false,
		AllowPartial:    false,
	}

	DefaultUnmarshalOptions = jsonpb.UnmarshalOptions{
		DiscardUnknown: false,
		AllowPartial:   false,
	}
)

Functions

func MarshalOptions

func MarshalOptions(o jsonpb.MarshalOptions) codec.Option

func NewCodec

func NewCodec(opts ...codec.Option) codec.Codec

func NewCodecV2 added in v3.10.2

func NewCodecV2(opts ...codec.Option) codec.CodecV2

func UnmarshalOptions

func UnmarshalOptions(o jsonpb.UnmarshalOptions) codec.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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