proto

package
v0.0.0-...-54bdd87 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) proto.Option[bool]

Bool stores v in a new bool value and returns a pointer to it.

func Float32

func Float32(v float32) proto.Option[float32]

Float32 stores v in a new float32 value and returns a pointer to it.

func Float64

func Float64(v float64) proto.Option[float64]

Float64 stores v in a new float64 value and returns a pointer to it.

func Int32

func Int32(v int32) proto.Option[int32]

Int32 stores v in a new int32 value and returns a pointer to it.

func Int64

func Int64(v int64) proto.Option[int64]

Int64 stores v in a new int64 value and returns a pointer to it.

func Marshal

func Marshal(m Message) ([]byte, error)

func None

func None[T any]() proto.Option[T]

func Some

func Some[T any](val T) proto.Option[T]

func String

func String(v string) proto.Option[string]

String stores v in a new string value and returns a pointer to it.

func Uint32

func Uint32(v uint32) proto.Option[uint32]

Uint32 stores v in a new uint32 value and returns a pointer to it.

func Uint64

func Uint64(v uint64) proto.Option[uint64]

Uint64 stores v in a new uint64 value and returns a pointer to it.

func Unmarshal

func Unmarshal(b []byte, m Message) error

Types

type DynamicMessage

type DynamicMessage map[uint64]any

func (DynamicMessage) Encode

func (msg DynamicMessage) Encode() []byte

type Message

type Message = any

type SInt

type SInt int

zigzag encoding types

type SInt32

type SInt32 int32

zigzag encoding types

type SInt64

type SInt64 int64

zigzag encoding types

Jump to

Keyboard shortcuts

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