protobuf

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: OSL-3.0 Imports: 6 Imported by: 0

Documentation

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) Encode

func (m Message) Encode() io.Reader

func (Message) Get

func (m Message) Get(keys ...protowire.Number) Message

func (Message) GetBytes

func (m Message) GetBytes(keys ...protowire.Number) []byte

func (Message) GetMessages

func (m Message) GetMessages(keys ...protowire.Number) []Message

func (Message) GetString

func (m Message) GetString(keys ...protowire.Number) string

func (Message) GetUint64

func (m Message) GetUint64(keys ...protowire.Number) uint64

func (Message) GoString

func (m Message) GoString() string

func (Message) Marshal

func (m Message) Marshal() []byte

func (Message) Set

func (m Message) Set(key protowire.Number, val Message)

func (Message) SetUint64

func (m Message) SetUint64(key protowire.Number, val uint64)

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