any

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAnys

func GenAnys(details ...proto.Message) ([]*anypb.Any, error)

Types

type RawJson

type RawJson []byte

func BytesToJsonAny

func BytesToJsonAny(b []byte) RawJson

func NewAny

func NewAny(v interface{}) (RawJson, error)

func NewPopulatedRawJson

func NewPopulatedRawJson(r randyBytesJson, easy bool) *RawJson

func StringToJsonAny

func StringToJsonAny(s string) RawJson

func (*RawJson) MarshalJSON

func (a *RawJson) MarshalJSON() ([]byte, error)

func (*RawJson) MarshalTo

func (a *RawJson) MarshalTo(b []byte) (int, error)

func (*RawJson) MarshalToSizedBuffer

func (a *RawJson) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RawJson) Size

func (a *RawJson) Size() int

func (*RawJson) Unmarshal

func (a *RawJson) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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