clock

package
v1.26.2-121.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-helpers. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_temporal_server_api_clock_v1_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HybridLogicalClock added in v1.21.0

type HybridLogicalClock struct {

	// Wall clock - A single time source MUST guarantee that 2 consecutive timestamps are monotonically non-decreasing.
	// e.g. by storing the last wall clock and returning max(gettimeofday(), lastWallClock).
	WallClock int64 `protobuf:"varint,1,opt,name=wall_clock,json=wallClock,proto3" json:"wall_clock,omitempty"`
	// Incremental sequence that is reset every time the system's wallclock moves forward.
	// Ensures the clock generates monotonically increasing timestamps.
	Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// The cluster version ID as described in the XDC docs - used as a tie breaker.
	// See: https://github.com/uber/cadence/blob/master/docs/design/2290-cadence-ndc.md
	ClusterId int64 `protobuf:"varint,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

A Hybrid Logical Clock timestamp. Guarantees strict total ordering for conflict resolution purposes.

func (*HybridLogicalClock) Descriptor deprecated added in v1.21.0

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

Deprecated: Use HybridLogicalClock.ProtoReflect.Descriptor instead.

func (*HybridLogicalClock) Equal added in v1.21.0

func (this *HybridLogicalClock) Equal(that interface{}) bool

Equal returns whether two HybridLogicalClock values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*HybridLogicalClock) GetClusterId added in v1.21.0

func (x *HybridLogicalClock) GetClusterId() int64

func (*HybridLogicalClock) GetVersion added in v1.21.0

func (x *HybridLogicalClock) GetVersion() int32

func (*HybridLogicalClock) GetWallClock added in v1.21.0

func (x *HybridLogicalClock) GetWallClock() int64

func (*HybridLogicalClock) Marshal added in v1.21.0

func (val *HybridLogicalClock) Marshal() ([]byte, error)

Marshal an object of type HybridLogicalClock to the protobuf v3 wire format

func (*HybridLogicalClock) ProtoMessage added in v1.21.0

func (*HybridLogicalClock) ProtoMessage()

func (*HybridLogicalClock) ProtoReflect added in v1.23.0

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

func (*HybridLogicalClock) Reset added in v1.21.0

func (x *HybridLogicalClock) Reset()

func (*HybridLogicalClock) Size added in v1.21.0

func (val *HybridLogicalClock) Size() int

Size returns the size of the object, in bytes, once serialized

func (*HybridLogicalClock) String added in v1.21.0

func (x *HybridLogicalClock) String() string

func (*HybridLogicalClock) Unmarshal added in v1.21.0

func (val *HybridLogicalClock) Unmarshal(buf []byte) error

Unmarshal an object of type HybridLogicalClock from the protobuf v3 wire format

type VectorClock

type VectorClock struct {
	ShardId   int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
	Clock     int64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"`
	ClusterId int64 `protobuf:"varint,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorClock) Descriptor deprecated

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

Deprecated: Use VectorClock.ProtoReflect.Descriptor instead.

func (*VectorClock) Equal

func (this *VectorClock) Equal(that interface{}) bool

Equal returns whether two VectorClock values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*VectorClock) GetClock

func (x *VectorClock) GetClock() int64

func (*VectorClock) GetClusterId

func (x *VectorClock) GetClusterId() int64

func (*VectorClock) GetShardId

func (x *VectorClock) GetShardId() int32

func (*VectorClock) Marshal

func (val *VectorClock) Marshal() ([]byte, error)

Marshal an object of type VectorClock to the protobuf v3 wire format

func (*VectorClock) ProtoMessage

func (*VectorClock) ProtoMessage()

func (*VectorClock) ProtoReflect added in v1.23.0

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

func (*VectorClock) Reset

func (x *VectorClock) Reset()

func (*VectorClock) Size

func (val *VectorClock) Size() int

Size returns the size of the object, in bytes, once serialized

func (*VectorClock) String

func (x *VectorClock) String() string

func (*VectorClock) Unmarshal

func (val *VectorClock) Unmarshal(buf []byte) error

Unmarshal an object of type VectorClock from the protobuf v3 wire format

Jump to

Keyboard shortcuts

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