Help us shape the future of Go! Take the 2026 Go Developer Survey

batchdbpb

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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
	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) 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_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 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    []*requestpb.Request `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	Origin *LookupBatchOrigin   `protobuf:"bytes,4,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() []*requestpb.Request

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"`
	TxIds    [][]byte             `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
	Txs      []*requestpb.Request `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
	Metadata []byte               `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // not used at the moment
	Origin   *StoreBatchOrigin    `protobuf:"bytes,5,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) GetMetadata

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

func (*StoreBatch) GetOrigin

func (x *StoreBatch) GetOrigin() *StoreBatchOrigin

func (*StoreBatch) GetTxIds

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

func (*StoreBatch) GetTxs

func (x *StoreBatch) GetTxs() []*requestpb.Request

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