proto

package
v0.0.0-...-ee4c243 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TransactionLog_Status_name = map[int32]string{
		0: "DEFAULT",
		1: "COMMITTED",
		2: "ABORTED",
		3: "PENDING",
	}
	TransactionLog_Status_value = map[string]int32{
		"DEFAULT":   0,
		"COMMITTED": 1,
		"ABORTED":   2,
		"PENDING":   3,
	}
)

Enum value maps for TransactionLog_Status.

View Source
var (
	Lock_LockType_name = map[int32]string{
		0: "UNKNOWN",
		1: "NONE",
		2: "READ",
		3: "WRITE",
		4: "CREATE",
	}
	Lock_LockType_value = map[string]int32{
		"UNKNOWN": 0,
		"NONE":    1,
		"READ":    2,
		"WRITE":   3,
		"CREATE":  4,
	}
)

Enum value maps for Lock_LockType.

View Source
var File_transaction_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CollectionLocks

type CollectionLocks struct {
	CollectionLock Lock_LockType `` /* 131-byte string literal not displayed */
	Locks          []*Lock       `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionLocks) Descriptor deprecated

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

Deprecated: Use CollectionLocks.ProtoReflect.Descriptor instead.

func (*CollectionLocks) GetCollectionLock

func (x *CollectionLocks) GetCollectionLock() Lock_LockType

func (*CollectionLocks) GetLocks

func (x *CollectionLocks) GetLocks() []*Lock

func (*CollectionLocks) ProtoMessage

func (*CollectionLocks) ProtoMessage()

func (*CollectionLocks) ProtoReflect

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

func (*CollectionLocks) Reset

func (x *CollectionLocks) Reset()

func (*CollectionLocks) String

func (x *CollectionLocks) String() string

type CollectionWrites

type CollectionWrites struct {
	Prefix string           `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Writes []*Write         `protobuf:"bytes,2,rep,name=writes,proto3" json:"writes,omitempty"`
	Locks  *CollectionLocks `protobuf:"bytes,3,opt,name=locks,proto3" json:"locks,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionWrites) Descriptor deprecated

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

Deprecated: Use CollectionWrites.ProtoReflect.Descriptor instead.

func (*CollectionWrites) GetLocks

func (x *CollectionWrites) GetLocks() *CollectionLocks

func (*CollectionWrites) GetPrefix

func (x *CollectionWrites) GetPrefix() string

func (*CollectionWrites) GetWrites

func (x *CollectionWrites) GetWrites() []*Write

func (*CollectionWrites) ProtoMessage

func (*CollectionWrites) ProtoMessage()

func (*CollectionWrites) ProtoReflect

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

func (*CollectionWrites) Reset

func (x *CollectionWrites) Reset()

func (*CollectionWrites) String

func (x *CollectionWrites) String() string

type Lock

type Lock struct {
	Suffix   string        `protobuf:"bytes,1,opt,name=suffix,proto3" json:"suffix,omitempty"`
	LockType Lock_LockType `protobuf:"varint,2,opt,name=lock_type,json=lockType,proto3,enum=glassdb.Lock_LockType" json:"lock_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Lock) Descriptor deprecated

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

Deprecated: Use Lock.ProtoReflect.Descriptor instead.

func (*Lock) GetLockType

func (x *Lock) GetLockType() Lock_LockType

func (*Lock) GetSuffix

func (x *Lock) GetSuffix() string

func (*Lock) ProtoMessage

func (*Lock) ProtoMessage()

func (*Lock) ProtoReflect

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

func (*Lock) Reset

func (x *Lock) Reset()

func (*Lock) String

func (x *Lock) String() string

type Lock_LockType

type Lock_LockType int32
const (
	Lock_UNKNOWN Lock_LockType = 0
	Lock_NONE    Lock_LockType = 1
	Lock_READ    Lock_LockType = 2
	Lock_WRITE   Lock_LockType = 3
	Lock_CREATE  Lock_LockType = 4
)

func (Lock_LockType) Descriptor

func (Lock_LockType) Enum

func (x Lock_LockType) Enum() *Lock_LockType

func (Lock_LockType) EnumDescriptor deprecated

func (Lock_LockType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Lock_LockType.Descriptor instead.

func (Lock_LockType) Number

func (Lock_LockType) String

func (x Lock_LockType) String() string

func (Lock_LockType) Type

type TransactionLog

type TransactionLog struct {
	Timestamp *timestamp.Timestamp  `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Status    TransactionLog_Status `protobuf:"varint,2,opt,name=status,proto3,enum=glassdb.TransactionLog_Status" json:"status,omitempty"`
	Writes    []*CollectionWrites   `protobuf:"bytes,3,rep,name=writes,proto3" json:"writes,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionLog) Descriptor deprecated

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

Deprecated: Use TransactionLog.ProtoReflect.Descriptor instead.

func (*TransactionLog) GetStatus

func (x *TransactionLog) GetStatus() TransactionLog_Status

func (*TransactionLog) GetTimestamp

func (x *TransactionLog) GetTimestamp() *timestamp.Timestamp

func (*TransactionLog) GetWrites

func (x *TransactionLog) GetWrites() []*CollectionWrites

func (*TransactionLog) ProtoMessage

func (*TransactionLog) ProtoMessage()

func (*TransactionLog) ProtoReflect

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

func (*TransactionLog) Reset

func (x *TransactionLog) Reset()

func (*TransactionLog) String

func (x *TransactionLog) String() string

type TransactionLog_Status

type TransactionLog_Status int32
const (
	TransactionLog_DEFAULT   TransactionLog_Status = 0
	TransactionLog_COMMITTED TransactionLog_Status = 1
	TransactionLog_ABORTED   TransactionLog_Status = 2
	TransactionLog_PENDING   TransactionLog_Status = 3
)

func (TransactionLog_Status) Descriptor

func (TransactionLog_Status) Enum

func (TransactionLog_Status) EnumDescriptor deprecated

func (TransactionLog_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransactionLog_Status.Descriptor instead.

func (TransactionLog_Status) Number

func (TransactionLog_Status) String

func (x TransactionLog_Status) String() string

func (TransactionLog_Status) Type

type Write

type Write struct {
	Suffix string `protobuf:"bytes,1,opt,name=suffix,proto3" json:"suffix,omitempty"`
	// The ID of the last transaction writing to this key.
	PrevTid []byte `protobuf:"bytes,3,opt,name=prev_tid,json=prevTid,proto3" json:"prev_tid,omitempty"`
	// Types that are assignable to ValDelete:
	//
	//	*Write_Value
	//	*Write_Deleted
	ValDelete isWrite_ValDelete `protobuf_oneof:"val_delete"`
	// contains filtered or unexported fields
}

func (*Write) Descriptor deprecated

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

Deprecated: Use Write.ProtoReflect.Descriptor instead.

func (*Write) GetDeleted

func (x *Write) GetDeleted() bool

func (*Write) GetPrevTid

func (x *Write) GetPrevTid() []byte

func (*Write) GetSuffix

func (x *Write) GetSuffix() string

func (*Write) GetValDelete

func (m *Write) GetValDelete() isWrite_ValDelete

func (*Write) GetValue

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

func (*Write) ProtoMessage

func (*Write) ProtoMessage()

func (*Write) ProtoReflect

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

func (*Write) Reset

func (x *Write) Reset()

func (*Write) String

func (x *Write) String() string

type Write_Deleted

type Write_Deleted struct {
	Deleted bool `protobuf:"varint,4,opt,name=deleted,proto3,oneof"`
}

type Write_Value

type Write_Value struct {
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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