Documentation
¶
Overview ¶
Package wirepath is an xpath-like means of representing a location within a protocol buffer message.
Index ¶
- func GetValue(p *WirePath, within proto.Message) (protoreflect.Value, error)
- type Value
- func ValueOf(v interface{}, kind protoreflect.Kind) Value
- func ValueOfBytes(v []byte) Value
- func ValueOfDouble(v float64) Value
- func ValueOfEnum(v protoreflect.EnumNumber) Value
- func ValueOfFixed32(v uint32) Value
- func ValueOfFixed64(v uint64) Value
- func ValueOfFloat(v float32) Value
- func ValueOfInt32(v int32) Value
- func ValueOfInt64(v int64) Value
- func ValueOfList(v protoreflect.List, kind protoreflect.Kind) Value
- func ValueOfMessage(v protoreflect.Message) Value
- func ValueOfSfixed32(v int32) Value
- func ValueOfSfixed64(v int64) Value
- func ValueOfSint32(v int32) Value
- func ValueOfSint64(v int64) Value
- func ValueOfString(v string) Value
- func ValueOfUint32(v uint32) Value
- func ValueOfUint64(v uint64) Value
- func (v Value) Bool() bool
- func (v Value) Bytes() []byte
- func (v Value) Enum() protoreflect.EnumNumber
- func (v Value) Float() float64
- func (v Value) Int() int64
- func (v Value) Interface() interface{}
- func (v Value) IsValid() bool
- func (v Value) Kind() protoreflect.Kind
- func (v Value) List() protoreflect.List
- func (v Value) Map() protoreflect.Map
- func (v Value) MapKey() protoreflect.MapKey
- func (v Value) Message() protoreflect.Message
- func (v Value) String() string
- func (v Value) Uint() uint64
- type WirePath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
Value is like protoreflect.Value, but it preserves the protobuf kind of the value.
func ValueOf ¶
func ValueOf(v interface{}, kind protoreflect.Kind) Value
func ValueOfBytes ¶
func ValueOfDouble ¶
func ValueOfEnum ¶
func ValueOfEnum(v protoreflect.EnumNumber) Value
func ValueOfFixed32 ¶
func ValueOfFixed64 ¶
func ValueOfFloat ¶
func ValueOfInt32 ¶
func ValueOfInt64 ¶
func ValueOfList ¶
func ValueOfList(v protoreflect.List, kind protoreflect.Kind) Value
func ValueOfMessage ¶
func ValueOfMessage(v protoreflect.Message) Value
func ValueOfSfixed32 ¶
func ValueOfSfixed64 ¶
func ValueOfSint32 ¶
func ValueOfSint64 ¶
func ValueOfString ¶
func ValueOfUint32 ¶
func ValueOfUint64 ¶
func (Value) Enum ¶
func (v Value) Enum() protoreflect.EnumNumber
func (Value) Kind ¶
func (v Value) Kind() protoreflect.Kind
func (Value) List ¶
func (v Value) List() protoreflect.List
func (Value) Map ¶
func (v Value) Map() protoreflect.Map
func (Value) MapKey ¶
func (v Value) MapKey() protoreflect.MapKey
func (Value) Message ¶
func (v Value) Message() protoreflect.Message
type WirePath ¶
type WirePath struct {
// contains filtered or unexported fields
}
WirePath is a parsed and validated Go representation of a WirePath protobuf.
func ParseString ¶
Click to show internal directories.
Click to hide internal directories.