protobuf

package
v1.26.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: OSL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v1.26.4

func Add[T any](mes Message, num Number, typ Type, val T)

Types

type Message added in v1.26.4

type Message map[Tag]any

func Unmarshal added in v1.26.4

func Unmarshal(buf []byte) (Message, error)

func (Message) Marshal added in v1.26.4

func (m Message) Marshal() []byte

type Number added in v1.26.4

type Number = protowire.Number

type Tag added in v1.26.4

type Tag struct {
	Number
	Type
}

func NewTag added in v1.26.4

func NewTag(num Number) Tag

func (Tag) MarshalText added in v1.26.4

func (t Tag) MarshalText() ([]byte, error)

type Token added in v1.26.4

type Token[T any] struct {
	Message
	Value T
}

type Type added in v1.26.4

type Type = protowire.Type
const (
	BytesType   Type = 2
	Fixed64Type Type = 1
	MessageType Type = 0
	VarintType  Type = 6
)

Jump to

Keyboard shortcuts

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