jsonc

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSCodec = &JsonCodec{jsonCodec: x.Jsoniter}

Functions

This section is empty.

Types

type JsonCodec

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

func (*JsonCodec) Decode

func (j *JsonCodec) Decode(b []byte, rsp proto.Message) error

func (*JsonCodec) Encode

func (j *JsonCodec) Encode(req proto.Message) ([]byte, error)

func (*JsonCodec) MustDecode added in v1.0.9

func (j *JsonCodec) MustDecode(b []byte, rsp proto.Message)

func (*JsonCodec) MustEncode added in v1.0.9

func (j *JsonCodec) MustEncode(req proto.Message) []byte

func (*JsonCodec) MustEncodeString added in v1.0.9

func (j *JsonCodec) MustEncodeString(req proto.Message) string

func (*JsonCodec) Name added in v1.0.6

func (j *JsonCodec) Name() string

Jump to

Keyboard shortcuts

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