decoder

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Tag      string
	Method   string // "/" {service name} "/" {method name}
	Metadata []Meta
	Message  []byte
}

func (*Data) Reset

func (d *Data) Reset()

type Decoder

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

func NewDecoder

func NewDecoder() *Decoder

func (*Decoder) Unmarshal

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

type Meta

type Meta struct {
	Name  string
	Value string
}

type SafeMultiValDecoder

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

func NewSafeMultiValDecoder

func NewSafeMultiValDecoder() *SafeMultiValDecoder

func (*SafeMultiValDecoder) UnmarshalAppend

func (d *SafeMultiValDecoder) UnmarshalAppend(buf []Meta, bytes []byte) ([]Meta, error)

Jump to

Keyboard shortcuts

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