protos

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object[T proto.Message] struct {
	Entry T
}

func (Object[T]) Marshal

func (obj Object[T]) Marshal() (p []byte, err error)

func (Object[T]) Unmarshal

func (obj Object[T]) Unmarshal(dst any) (err error)

func (Object[T]) Valid

func (obj Object[T]) Valid() (ok bool)

func (Object[T]) Value

func (obj Object[T]) Value() (v any)

type RawMessage

type RawMessage []byte

func (RawMessage) Marshal

func (raw RawMessage) Marshal() (p []byte, err error)

func (RawMessage) Unmarshal

func (raw RawMessage) Unmarshal(dst any) (err error)

func (RawMessage) Valid

func (raw RawMessage) Valid() (ok bool)

func (RawMessage) Value

func (raw RawMessage) Value() (v any)

Jump to

Keyboard shortcuts

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