Documentation ¶
Index ¶
- Variables
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetExpiresAt() *timestamppb.Timestamp
- func (x *Record) GetKey() string
- func (x *Record) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Record) GetValue() []byte
- func (x *Record) GetVersion() string
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_golibskvs_v1_record_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { // key contains the key value Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // value is the payload Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // version is the version of the record. It will be set by the storage when // the record created or updated Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // updatedAt contains the timestamp when the record is updated. It is set by the storage UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // expiresAt contains the timestamp when the record will be removed by the storage authomatically ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiresAt,proto3,oneof" json:"expiresAt,omitempty"` // contains filtered or unexported fields }
Record describes a key-value pair stored in the storage
func (*Record) Descriptor
deprecated
func (*Record) GetExpiresAt ¶
func (x *Record) GetExpiresAt() *timestamppb.Timestamp
func (*Record) GetUpdatedAt ¶
func (x *Record) GetUpdatedAt() *timestamppb.Timestamp
func (*Record) GetVersion ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.