Documentation ¶
Overview ¶
Package store provides storage types/behavior for the oplog
Index ¶
- Variables
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetAggregateName() string
- func (x *Entry) GetCreateTime() *timestamp.Timestamp
- func (x *Entry) GetCtData() []byte
- func (x *Entry) GetData() []byte
- func (x *Entry) GetId() uint32
- func (x *Entry) GetMetadata() []*Metadata
- func (x *Entry) GetUpdateTime() *timestamp.Timestamp
- func (x *Entry) GetVersion() string
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- func (*Entry) TableName() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetCreateTime() *timestamp.Timestamp
- func (x *Metadata) GetEntry() *Entry
- func (x *Metadata) GetEntryId() uint32
- func (x *Metadata) GetId() uint32
- func (x *Metadata) GetKey() string
- func (x *Metadata) GetValue() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (*Metadata) TableName() string
- type Ticket
- func (*Ticket) Descriptor() ([]byte, []int)deprecated
- func (x *Ticket) GetCreateTime() *timestamp.Timestamp
- func (x *Ticket) GetId() uint32
- func (x *Ticket) GetName() string
- func (x *Ticket) GetUpdateTime() *timestamp.Timestamp
- func (x *Ticket) GetVersion() uint32
- func (*Ticket) ProtoMessage()
- func (x *Ticket) ProtoReflect() protoreflect.Message
- func (x *Ticket) Reset()
- func (x *Ticket) String() string
- func (*Ticket) TableName() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_controller_storage_oplog_store_v1_oplog_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { // @inject_tag: gorm:"primary_key" Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // @inject_tag: `gorm:"default:current_timestamp"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"` // @inject_tag: gorm:"not_null" Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty" gorm:"not_null"` // @inject_tat: gorm:"not_null" AggregateName string `protobuf:"bytes,5,opt,name=aggregate_name,json=aggregateName,proto3" json:"aggregate_name,omitempty"` // one to many relationship // @inject_tag: gorm:"foreignkey:entry_id" Metadata []*Metadata `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty" gorm:"foreignkey:entry_id"` // ciphertext entry data stored in the database // @inject_tag: gorm:"column:data;not_null" wrapping:"ct,entry_data" CtData []byte `` /* 132-byte string literal not displayed */ // plain text version of the decrypted entry data // we are NOT storing this plain-text entry data in the db // @inject_tag: gorm:"-" wrapping:"pt,entry_data" Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty" gorm:"-" wrapping:"pt,entry_data"` // contains filtered or unexported fields }
Entry provides a message for oplog entries that's compatible with gorm
func (*Entry) Descriptor
deprecated
func (*Entry) GetAggregateName ¶
func (*Entry) GetCreateTime ¶
func (*Entry) GetMetadata ¶
func (*Entry) GetUpdateTime ¶
func (*Entry) GetVersion ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type Metadata ¶
type Metadata struct { // @inject_tag: gorm:"primary_key" Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // @inject_tag: gorm:"not_nul EntryId uint32 `protobuf:"varint,3,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` // @inject_tag: gorm:"foreignkey:EntryId" Entry *Entry `protobuf:"bytes,4,opt,name=entry,proto3" json:"entry,omitempty" gorm:"foreignkey:EntryId"` // @inject_tag: gorm:"not_null" Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty" gorm:"not_null"` // @inject_tag: gorm:"not_null" Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty" gorm:"not_null"` // contains filtered or unexported fields }
Metadata provides a message for oplog metadata that's compatible with gorm
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetCreateTime ¶
func (*Metadata) GetEntryId ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Ticket ¶
type Ticket struct { // @inject_tag: gorm:"primary_key" Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // @inject_tag: `gorm:"default:current_timestamp"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"` // @inject_tat: gorm:"not_null" Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // @inject_tat: gorm:"not_null;default:'1'" Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Ticket provides a message for oplog tickets that's compatible with gorm
func (*Ticket) Descriptor
deprecated
func (*Ticket) GetCreateTime ¶
func (*Ticket) GetUpdateTime ¶
func (*Ticket) GetVersion ¶
func (*Ticket) ProtoMessage ¶
func (*Ticket) ProtoMessage()
func (*Ticket) ProtoReflect ¶
func (x *Ticket) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.