encoding

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(
	desriptors reflection.DynamicMessagesStore,
	opts ...DecoderOption,
) *Decoder

func (*Decoder) Unmarshal

func (decoder *Decoder) Unmarshal(d *model.Data, b []byte) error

Unmarshal unmarshal bytes to *grpc.Data struct

type DecoderOption

type DecoderOption func(*Decoder)

func WithSingleMetaValue

func WithSingleMetaValue() DecoderOption

type Encoder

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

func NewEncoder

func NewEncoder(desriptors reflection.DynamicMessagesStore) *Encoder

func (*Encoder) MarshalAppend

func (encoder *Encoder) MarshalAppend(b []byte, d *model.Data) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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