protobuf

package module
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: OSL-3.0 Imports: 3 Imported by: 0

README

ProtoBuf

In the name of the warrior, I charge you to be brave.
In the name of the father, I charge you to be just.
In the name of the mother, I charge you to defend the innocent.

A Knight of the Seven Kingdoms (Game of Thrones) (2019)

Protocol Buffers

This module parses and formats the raw wire encoding.

prior art

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes []byte

func (Bytes) Append

func (b Bytes) Append(data []byte, key Number) []byte

func (Bytes) GoString

func (b Bytes) GoString() string

type Fixed32

type Fixed32 uint32

func (Fixed32) Append

func (f Fixed32) Append(data []byte, key Number) []byte

func (Fixed32) GoString

func (f Fixed32) GoString() string

type Fixed64

type Fixed64 uint64

func (Fixed64) Append

func (f Fixed64) Append(data []byte, key Number) []byte

func (Fixed64) GoString

func (f Fixed64) GoString() string

type Message

type Message map[Number][]Value

func (Message) Add

func (m Message) Add(key Number, f func(Message))

func (Message) AddBytes added in v1.0.5

func (m Message) AddBytes(key Number, v Bytes)

func (Message) AddFixed32 added in v1.0.5

func (m Message) AddFixed32(key Number, v Fixed32)

func (Message) AddFixed64 added in v1.0.5

func (m Message) AddFixed64(key Number, v Fixed64)

func (Message) AddMessage added in v1.3.2

func (m Message) AddMessage(key Number, v Message)

func (Message) AddVarint added in v1.0.5

func (m Message) AddVarint(key Number, v Varint)

func (Message) Append

func (m Message) Append(data []byte, key Number) []byte

func (Message) Get added in v1.0.5

func (m Message) Get(key Number) func() (Message, bool)

func (Message) GetBytes added in v1.0.5

func (m Message) GetBytes(key Number) func() (Bytes, bool)

func (Message) GetFixed32 added in v1.0.5

func (m Message) GetFixed32(key Number) func() (Fixed32, bool)

func (Message) GetFixed64 added in v1.0.5

func (m Message) GetFixed64(key Number) func() (Fixed64, bool)

func (Message) GetVarint added in v1.0.5

func (m Message) GetVarint(key Number) func() (Varint, bool)

func (Message) GoString

func (m Message) GoString() string

func (Message) Marshal added in v1.2.1

func (m Message) Marshal() []byte

func (Message) Unmarshal added in v1.2.1

func (m Message) Unmarshal(data []byte) error

type Number

type Number = protowire.Number

type Unknown added in v1.2.5

type Unknown struct {
	Bytes   Bytes
	Message Message
}

func (Unknown) Append added in v1.2.5

func (u Unknown) Append(data []byte, key Number) []byte

func (Unknown) GoString added in v1.2.5

func (u Unknown) GoString() string

func (Unknown) Marshal added in v1.3.6

func (u Unknown) Marshal() []byte

type Value

type Value interface {
	Append([]byte, Number) []byte
	fmt.GoStringer
}

type Varint

type Varint uint64

func (Varint) Append

func (v Varint) Append(data []byte, key Number) []byte

func (Varint) GoString

func (v Varint) GoString() string

Jump to

Keyboard shortcuts

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