protobuf

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: OSL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Protocol Buffers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message map[Tag]interface{}

func Decode

func Decode(src io.Reader) (Message, error)

func Unmarshal

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

func (Message) Add added in v1.17.8

func (m Message) Add(num protowire.Number, str string, val Message)

func (Message) Encode

func (m Message) Encode() io.Reader

func (Message) Get

func (m Message) Get(num protowire.Number, str string) Message

func (Message) GetBytes

func (m Message) GetBytes(num protowire.Number, str string) []byte

func (Message) GetMessages

func (m Message) GetMessages(num protowire.Number, str string) []Message

func (Message) GetString

func (m Message) GetString(num protowire.Number, str string) string

func (Message) GetUint64

func (m Message) GetUint64(num protowire.Number, str string) uint64

func (Message) GoString

func (m Message) GoString() string

func (Message) Marshal

func (m Message) Marshal() []byte

type Tag

type Tag struct {
	protowire.Number
	String string
}

func (Tag) MarshalText

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

encoding/json

Jump to

Keyboard shortcuts

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