Documentation
¶
Index ¶
- Variables
- func AnyToBoolean(v any) (bool, error)
- func AnyToBytes(v any) ([]byte, error)
- func AnyToFloat(v any) (float64, error)
- func AnyToInteger(v any) (int64, error)
- func AnyToMessage(input any, message protoreflect.Message, inters ...EncodeInterceptor) error
- func AnyToString(v any) (string, error)
- func AnyToUnsigned(v any) (uint64, error)
- func GoValueToProto(desc protoreflect.FieldDescriptor, kind protoreflect.Kind, value any, ...) (protoreflect.Value, error)
- func MessageToAny(message protoreflect.Message, inters ...DecodeInterceptor) (any, error)
- func ProtoToGoValue(desc protoreflect.FieldDescriptor, kind protoreflect.Kind, ...) (any, error)
- type DecodeInterceptor
- type EncodeInterceptor
- type Mapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchFile = errors.New("no such file") ErrNoSuchMessage = errors.New("no such message in descriptor") )
Functions ¶
func AnyToBoolean ¶
func AnyToBytes ¶
func AnyToFloat ¶
func AnyToInteger ¶
func AnyToMessage ¶ added in v0.2.0
func AnyToMessage(input any, message protoreflect.Message, inters ...EncodeInterceptor) error
func AnyToString ¶
func AnyToUnsigned ¶
func GoValueToProto ¶
func GoValueToProto(desc protoreflect.FieldDescriptor, kind protoreflect.Kind, value any, inters ...EncodeInterceptor) (protoreflect.Value, error)
func MessageToAny ¶ added in v0.2.0
func MessageToAny(message protoreflect.Message, inters ...DecodeInterceptor) (any, error)
func ProtoToGoValue ¶
func ProtoToGoValue(desc protoreflect.FieldDescriptor, kind protoreflect.Kind, value protoreflect.Value, inters ...DecodeInterceptor) (any, error)
Types ¶
type DecodeInterceptor ¶ added in v0.2.0
type DecodeInterceptor func(message protoreflect.Message) (result any, applied bool, err error)
type EncodeInterceptor ¶ added in v0.2.0
type EncodeInterceptor func(input any, message protoreflect.Message) (applied bool, err error)
Click to show internal directories.
Click to hide internal directories.