Documentation ¶
Index ¶
- Variables
- type Empty
- type KeyValuePair
- func (*KeyValuePair) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValuePair) GetKey() string
- func (x *KeyValuePair) GetValue() string
- func (*KeyValuePair) ProtoMessage()
- func (x *KeyValuePair) ProtoReflect() protoreflect.Message
- func (x *KeyValuePair) Reset()
- func (x *KeyValuePair) String() string
- type KeyValuePairList
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
Empty contains empty message used by other protos
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type KeyValuePair ¶
type KeyValuePair struct { // Key of the pair Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Values of the pair Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Key Values Pairs
func (*KeyValuePair) Descriptor
deprecated
func (*KeyValuePair) Descriptor() ([]byte, []int)
Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead.
func (*KeyValuePair) GetKey ¶
func (x *KeyValuePair) GetKey() string
func (*KeyValuePair) GetValue ¶
func (x *KeyValuePair) GetValue() string
func (*KeyValuePair) ProtoMessage ¶
func (*KeyValuePair) ProtoMessage()
func (*KeyValuePair) ProtoReflect ¶
func (x *KeyValuePair) ProtoReflect() protoreflect.Message
func (*KeyValuePair) Reset ¶
func (x *KeyValuePair) Reset()
func (*KeyValuePair) String ¶
func (x *KeyValuePair) String() string
type KeyValuePairList ¶
type KeyValuePairList []*KeyValuePair
KeyValuePairList is a strong typed list of KeyValuePair
func (*KeyValuePairList) GetValue ¶
func (list *KeyValuePairList) GetValue(key string) *string
GetValue gets the value for the requested key or nil if it doesn't exist
func (*KeyValuePairList) RemovePairByKey ¶
func (list *KeyValuePairList) RemovePairByKey(key string) bool
RemovePairByKey removes all entries with the provided key and assigns the new list Returns removed, otherwise unmodified
func (*KeyValuePairList) UpsertPair ¶
func (list *KeyValuePairList) UpsertPair(key, value string) bool
UpsertPair update or insert the given value for the requested key Returns inserted (otherwise updated)
Click to show internal directories.
Click to hide internal directories.