batchdbpb

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_availabilitypb_batchdbpb_batchdbpb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BatchStored

type BatchStored struct {
	Origin *StoreBatchOrigin `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

BatchStored is a response to a VerifyCert event.

func (*BatchStored) Descriptor deprecated

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

Deprecated: Use BatchStored.ProtoReflect.Descriptor instead.

func (*BatchStored) GetOrigin

func (x *BatchStored) GetOrigin() *StoreBatchOrigin

func (*BatchStored) ProtoMessage

func (*BatchStored) ProtoMessage()

func (*BatchStored) ProtoReflect

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

func (*BatchStored) Reset

func (x *BatchStored) Reset()

func (*BatchStored) String

func (x *BatchStored) String() string

type Event

type Event struct {

	// Types that are assignable to Type:
	//	*Event_Lookup
	//	*Event_LookupResponse
	//	*Event_Store
	//	*Event_Stored
	//	*Event_GarbageCollect
	Type isEvent_Type `protobuf_oneof:"Type"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetGarbageCollect added in v0.4.2

func (x *Event) GetGarbageCollect() *GarbageCollect

func (*Event) GetLookup

func (x *Event) GetLookup() *LookupBatch

func (*Event) GetLookupResponse

func (x *Event) GetLookupResponse() *LookupBatchResponse

func (*Event) GetStore

func (x *Event) GetStore() *StoreBatch

func (*Event) GetStored

func (x *Event) GetStored() *BatchStored

func (*Event) GetType

func (m *Event) GetType() isEvent_Type

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) ReflectTypeOptions added in v0.2.0

func (*Event) ReflectTypeOptions() []reflect.Type

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_GarbageCollect added in v0.4.2

type Event_GarbageCollect struct {
	GarbageCollect *GarbageCollect `protobuf:"bytes,5,opt,name=garbage_collect,json=garbageCollect,proto3,oneof"`
}

func (*Event_GarbageCollect) Unwrap added in v0.4.2

func (w *Event_GarbageCollect) Unwrap() *GarbageCollect

type Event_Lookup

type Event_Lookup struct {
	Lookup *LookupBatch `protobuf:"bytes,1,opt,name=lookup,proto3,oneof"`
}

func (*Event_Lookup) Unwrap

func (w *Event_Lookup) Unwrap() *LookupBatch

type Event_LookupResponse

type Event_LookupResponse struct {
	LookupResponse *LookupBatchResponse `protobuf:"bytes,2,opt,name=lookup_response,json=lookupResponse,proto3,oneof"`
}

func (*Event_LookupResponse) Unwrap

type Event_Store

type Event_Store struct {
	Store *StoreBatch `protobuf:"bytes,3,opt,name=store,proto3,oneof"`
}

func (*Event_Store) Unwrap

func (w *Event_Store) Unwrap() *StoreBatch

type Event_Stored

type Event_Stored struct {
	Stored *BatchStored `protobuf:"bytes,4,opt,name=stored,proto3,oneof"`
}

func (*Event_Stored) Unwrap

func (w *Event_Stored) Unwrap() *BatchStored

type Event_Type

type Event_Type = isEvent_Type

type Event_TypeWrapper

type Event_TypeWrapper[T any] interface {
	Event_Type
	Unwrap() *T
}

type GarbageCollect added in v0.4.2

type GarbageCollect struct {
	RetentionIndex uint64 `protobuf:"varint,1,opt,name=retention_index,json=retentionIndex,proto3" json:"retention_index,omitempty"`
	// contains filtered or unexported fields
}

func (*GarbageCollect) Descriptor deprecated added in v0.4.2

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

Deprecated: Use GarbageCollect.ProtoReflect.Descriptor instead.

func (*GarbageCollect) GetRetentionIndex added in v0.4.2

func (x *GarbageCollect) GetRetentionIndex() uint64

func (*GarbageCollect) ProtoMessage added in v0.4.2

func (*GarbageCollect) ProtoMessage()

func (*GarbageCollect) ProtoReflect added in v0.4.2

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

func (*GarbageCollect) Reset added in v0.4.2

func (x *GarbageCollect) Reset()

func (*GarbageCollect) String added in v0.4.2

func (x *GarbageCollect) String() string

type LookupBatch

type LookupBatch struct {
	BatchId []byte             `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	Origin  *LookupBatchOrigin `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

LookupBatch is used to pull a batch with its metadata from the local batch database.

func (*LookupBatch) Descriptor deprecated

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

Deprecated: Use LookupBatch.ProtoReflect.Descriptor instead.

func (*LookupBatch) GetBatchId

func (x *LookupBatch) GetBatchId() []byte

func (*LookupBatch) GetOrigin

func (x *LookupBatch) GetOrigin() *LookupBatchOrigin

func (*LookupBatch) ProtoMessage

func (*LookupBatch) ProtoMessage()

func (*LookupBatch) ProtoReflect

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

func (*LookupBatch) Reset

func (x *LookupBatch) Reset()

func (*LookupBatch) String

func (x *LookupBatch) String() string

type LookupBatchOrigin

type LookupBatchOrigin struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Types that are assignable to Type:
	//	*LookupBatchOrigin_ContextStore
	//	*LookupBatchOrigin_Dsl
	Type isLookupBatchOrigin_Type `protobuf_oneof:"Type"`
	// contains filtered or unexported fields
}

func (*LookupBatchOrigin) Descriptor deprecated

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

Deprecated: Use LookupBatchOrigin.ProtoReflect.Descriptor instead.

func (*LookupBatchOrigin) GetContextStore

func (x *LookupBatchOrigin) GetContextStore() *contextstorepb.Origin

func (*LookupBatchOrigin) GetDsl

func (x *LookupBatchOrigin) GetDsl() *dslpb.Origin

func (*LookupBatchOrigin) GetModule

func (x *LookupBatchOrigin) GetModule() string

func (*LookupBatchOrigin) GetType

func (m *LookupBatchOrigin) GetType() isLookupBatchOrigin_Type

func (*LookupBatchOrigin) ProtoMessage

func (*LookupBatchOrigin) ProtoMessage()

func (*LookupBatchOrigin) ProtoReflect

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

func (*LookupBatchOrigin) ReflectTypeOptions added in v0.3.0

func (*LookupBatchOrigin) ReflectTypeOptions() []reflect.Type

func (*LookupBatchOrigin) Reset

func (x *LookupBatchOrigin) Reset()

func (*LookupBatchOrigin) String

func (x *LookupBatchOrigin) String() string

type LookupBatchOrigin_ContextStore

type LookupBatchOrigin_ContextStore struct {
	ContextStore *contextstorepb.Origin `protobuf:"bytes,2,opt,name=context_store,json=contextStore,proto3,oneof"`
}

func (*LookupBatchOrigin_ContextStore) Unwrap added in v0.3.0

type LookupBatchOrigin_Dsl

type LookupBatchOrigin_Dsl struct {
	Dsl *dslpb.Origin `protobuf:"bytes,3,opt,name=dsl,proto3,oneof"`
}

func (*LookupBatchOrigin_Dsl) Unwrap added in v0.3.0

func (w *LookupBatchOrigin_Dsl) Unwrap() *dslpb.Origin

type LookupBatchOrigin_Type added in v0.3.0

type LookupBatchOrigin_Type = isLookupBatchOrigin_Type

type LookupBatchOrigin_TypeWrapper added in v0.3.0

type LookupBatchOrigin_TypeWrapper[T any] interface {
	LookupBatchOrigin_Type
	Unwrap() *T
}

type LookupBatchResponse

type LookupBatchResponse struct {
	Found  bool                     `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
	Txs    []*trantorpb.Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	Origin *LookupBatchOrigin       `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

LookupBatchResponse is a response to a LookupBatch event.

func (*LookupBatchResponse) Descriptor deprecated

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

Deprecated: Use LookupBatchResponse.ProtoReflect.Descriptor instead.

func (*LookupBatchResponse) GetFound

func (x *LookupBatchResponse) GetFound() bool

func (*LookupBatchResponse) GetOrigin

func (x *LookupBatchResponse) GetOrigin() *LookupBatchOrigin

func (*LookupBatchResponse) GetTxs

func (x *LookupBatchResponse) GetTxs() []*trantorpb.Transaction

func (*LookupBatchResponse) ProtoMessage

func (*LookupBatchResponse) ProtoMessage()

func (*LookupBatchResponse) ProtoReflect

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

func (*LookupBatchResponse) Reset

func (x *LookupBatchResponse) Reset()

func (*LookupBatchResponse) String

func (x *LookupBatchResponse) String() string

type StoreBatch

type StoreBatch struct {
	BatchId        []byte                   `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	Txs            []*trantorpb.Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	RetentionIndex uint64                   `protobuf:"varint,3,opt,name=retention_index,json=retentionIndex,proto3" json:"retention_index,omitempty"`
	Origin         *StoreBatchOrigin        `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

StoreBatch is used to store a new batch in the local batch database.

func (*StoreBatch) Descriptor deprecated

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

Deprecated: Use StoreBatch.ProtoReflect.Descriptor instead.

func (*StoreBatch) GetBatchId

func (x *StoreBatch) GetBatchId() []byte

func (*StoreBatch) GetOrigin

func (x *StoreBatch) GetOrigin() *StoreBatchOrigin

func (*StoreBatch) GetRetentionIndex added in v0.4.2

func (x *StoreBatch) GetRetentionIndex() uint64

func (*StoreBatch) GetTxs

func (x *StoreBatch) GetTxs() []*trantorpb.Transaction

func (*StoreBatch) ProtoMessage

func (*StoreBatch) ProtoMessage()

func (*StoreBatch) ProtoReflect

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

func (*StoreBatch) Reset

func (x *StoreBatch) Reset()

func (*StoreBatch) String

func (x *StoreBatch) String() string

type StoreBatchOrigin

type StoreBatchOrigin struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Types that are assignable to Type:
	//	*StoreBatchOrigin_ContextStore
	//	*StoreBatchOrigin_Dsl
	Type isStoreBatchOrigin_Type `protobuf_oneof:"Type"`
	// contains filtered or unexported fields
}

func (*StoreBatchOrigin) Descriptor deprecated

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

Deprecated: Use StoreBatchOrigin.ProtoReflect.Descriptor instead.

func (*StoreBatchOrigin) GetContextStore

func (x *StoreBatchOrigin) GetContextStore() *contextstorepb.Origin

func (*StoreBatchOrigin) GetDsl

func (x *StoreBatchOrigin) GetDsl() *dslpb.Origin

func (*StoreBatchOrigin) GetModule

func (x *StoreBatchOrigin) GetModule() string

func (*StoreBatchOrigin) GetType

func (m *StoreBatchOrigin) GetType() isStoreBatchOrigin_Type

func (*StoreBatchOrigin) ProtoMessage

func (*StoreBatchOrigin) ProtoMessage()

func (*StoreBatchOrigin) ProtoReflect

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

func (*StoreBatchOrigin) ReflectTypeOptions added in v0.3.0

func (*StoreBatchOrigin) ReflectTypeOptions() []reflect.Type

func (*StoreBatchOrigin) Reset

func (x *StoreBatchOrigin) Reset()

func (*StoreBatchOrigin) String

func (x *StoreBatchOrigin) String() string

type StoreBatchOrigin_ContextStore

type StoreBatchOrigin_ContextStore struct {
	ContextStore *contextstorepb.Origin `protobuf:"bytes,2,opt,name=context_store,json=contextStore,proto3,oneof"`
}

func (*StoreBatchOrigin_ContextStore) Unwrap added in v0.3.0

type StoreBatchOrigin_Dsl

type StoreBatchOrigin_Dsl struct {
	Dsl *dslpb.Origin `protobuf:"bytes,3,opt,name=dsl,proto3,oneof"`
}

func (*StoreBatchOrigin_Dsl) Unwrap added in v0.3.0

func (w *StoreBatchOrigin_Dsl) Unwrap() *dslpb.Origin

type StoreBatchOrigin_Type added in v0.3.0

type StoreBatchOrigin_Type = isStoreBatchOrigin_Type

type StoreBatchOrigin_TypeWrapper added in v0.3.0

type StoreBatchOrigin_TypeWrapper[T any] interface {
	StoreBatchOrigin_Type
	Unwrap() *T
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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