golibskvspb

package
v0.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetExpiresAt

func (x *Record) GetExpiresAt() *timestamppb.Timestamp

func (*Record) GetKey

func (x *Record) GetKey() string

func (*Record) GetUpdatedAt

func (x *Record) GetUpdatedAt() *timestamppb.Timestamp

func (*Record) GetValue

func (x *Record) GetValue() []byte

func (*Record) GetVersion

func (x *Record) GetVersion() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL