Documentation ¶
Index ¶
- Variables
- func MarshalAnySlice(anySlice []*anypb.Any) ([]byte, error)
- func UnmarshalAnySlice(data []byte) ([]*anypb.Any, error)
- type Generic
- func (g Generic) Debug()
- func (g Generic) Get(keys ...string) (value interface{})
- func (g Generic) Marshal() ([]byte, error)
- func (g Generic) MarshalProto(message protoreflect.ProtoMessage) error
- func (g Generic) MarshalReader() (io.Reader, error)
- func (g Generic) Set(key string, value interface{}) Generic
- func (g Generic) Unmarshal(data []byte) error
- func (g Generic) UnmarshalProto(message protoreflect.ProtoMessage) error
- func (g Generic) UnmarshalReader(reader io.Reader) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProtoJsonMarshalOptions = protojson.MarshalOptions{ Indent: "", AllowPartial: true, UseEnumNumbers: false, UseProtoNames: true, } ProtoJsonUnmarshalOptions = protojson.UnmarshalOptions{ AllowPartial: true, DiscardUnknown: true, } )
Functions ¶
Types ¶
type Generic ¶
type Generic map[string]interface{}
func CastGeneric ¶
func CastGeneric(source interface{}) Generic
func NewGeneric ¶
func NewGeneric() Generic
func (Generic) MarshalProto ¶
func (g Generic) MarshalProto(message protoreflect.ProtoMessage) error
func (Generic) UnmarshalProto ¶
func (g Generic) UnmarshalProto(message protoreflect.ProtoMessage) error
Click to show internal directories.
Click to hide internal directories.