v2

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_proto_state_etcd_v2_value_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Value

type Value struct {

	// Required. The value of the state key item.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Required. The creation time of the state key item. This is an
	// approximation by the components-contrib instance since ETCD does not
	// provide this information natively.
	Ts *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ts,proto3" json:"ts,omitempty"`
	// Optional. The Time To Live of the state key item. The duration of the TTL
	// is from the creation time of the key (`ts`). If not specified, the key has
	// no TTL.
	Ttl *durationpb.Duration `protobuf:"bytes,3,opt,name=ttl,proto3,oneof" json:"ttl,omitempty"`
	// contains filtered or unexported fields
}

Value is the value of the state key item. It contains the underlying data as well as necessary metadata.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetData

func (x *Value) GetData() []byte

func (*Value) GetTs

func (x *Value) GetTs() *timestamppb.Timestamp

func (*Value) GetTtl

func (x *Value) GetTtl() *durationpb.Duration

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Jump to

Keyboard shortcuts

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