MCPcopy
hub / github.com/grafana/dskit / KeyValuePair

Struct KeyValuePair

kv/memberlist/kv.pb.go:74–83  ·  view source on GitHub ↗

Single Key-Value pair. Key must be non-empty.

Source from the content-addressed store, hash-verified

72
73// Single Key-Value pair. Key must be non-empty.
74type KeyValuePair struct {
75 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
76 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
77 // ID of the codec used to write the value
78 Codec string `protobuf:"bytes,3,opt,name=codec,proto3" json:"codec,omitempty"`
79 // Is this Key marked for deletion?
80 Deleted bool `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted,omitempty"`
81 // When was the key last updated?
82 UpdateTimeMillis int64 `protobuf:"varint,5,opt,name=update_time_millis,json=updateTimeMillis,proto3" json:"update_time_millis,omitempty"`
83}
84
85func (m *KeyValuePair) Reset() { *m = KeyValuePair{} }
86func (*KeyValuePair) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected