servicepb

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package servicepb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Coordinator_BlockProcessing_FullMethodName                      = "/servicepb.Coordinator/BlockProcessing"
	Coordinator_SetLastCommittedBlockNumber_FullMethodName          = "/servicepb.Coordinator/SetLastCommittedBlockNumber"
	Coordinator_GetNextBlockNumberToCommit_FullMethodName           = "/servicepb.Coordinator/GetNextBlockNumberToCommit"
	Coordinator_GetTransactionsStatus_FullMethodName                = "/servicepb.Coordinator/GetTransactionsStatus"
	Coordinator_GetConfigTransaction_FullMethodName                 = "/servicepb.Coordinator/GetConfigTransaction"
	Coordinator_NumberOfWaitingTransactionsForStatus_FullMethodName = "/servicepb.Coordinator/NumberOfWaitingTransactionsForStatus"
)
View Source
const (
	LoadGenService_AppendBatch_FullMethodName  = "/servicepb.LoadGenService/AppendBatch"
	LoadGenService_GetRateLimit_FullMethodName = "/servicepb.LoadGenService/GetRateLimit"
	LoadGenService_SetRateLimit_FullMethodName = "/servicepb.LoadGenService/SetRateLimit"
)
View Source
const (
	ValidationAndCommitService_StartValidateAndCommitStream_FullMethodName   = "/servicepb.ValidationAndCommitService/StartValidateAndCommitStream"
	ValidationAndCommitService_SetLastCommittedBlockNumber_FullMethodName    = "/servicepb.ValidationAndCommitService/SetLastCommittedBlockNumber"
	ValidationAndCommitService_GetNextBlockNumberToCommit_FullMethodName     = "/servicepb.ValidationAndCommitService/GetNextBlockNumberToCommit"
	ValidationAndCommitService_GetTransactionsStatus_FullMethodName          = "/servicepb.ValidationAndCommitService/GetTransactionsStatus"
	ValidationAndCommitService_GetNamespacePolicies_FullMethodName           = "/servicepb.ValidationAndCommitService/GetNamespacePolicies"
	ValidationAndCommitService_GetConfigTransaction_FullMethodName           = "/servicepb.ValidationAndCommitService/GetConfigTransaction"
	ValidationAndCommitService_SetupSystemTablesAndNamespaces_FullMethodName = "/servicepb.ValidationAndCommitService/SetupSystemTablesAndNamespaces"
)
View Source
const (
	Verifier_StartStream_FullMethodName = "/servicepb.Verifier/StartStream"
)

Variables

View Source
var Coordinator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "servicepb.Coordinator",
	HandlerType: (*CoordinatorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetLastCommittedBlockNumber",
			Handler:    _Coordinator_SetLastCommittedBlockNumber_Handler,
		},
		{
			MethodName: "GetNextBlockNumberToCommit",
			Handler:    _Coordinator_GetNextBlockNumberToCommit_Handler,
		},
		{
			MethodName: "GetTransactionsStatus",
			Handler:    _Coordinator_GetTransactionsStatus_Handler,
		},
		{
			MethodName: "GetConfigTransaction",
			Handler:    _Coordinator_GetConfigTransaction_Handler,
		},
		{
			MethodName: "NumberOfWaitingTransactionsForStatus",
			Handler:    _Coordinator_NumberOfWaitingTransactionsForStatus_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "BlockProcessing",
			Handler:       _Coordinator_BlockProcessing_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/servicepb/coordinator.proto",
}

Coordinator_ServiceDesc is the grpc.ServiceDesc for Coordinator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_servicepb_common_proto protoreflect.FileDescriptor
View Source
var File_api_servicepb_coordinator_proto protoreflect.FileDescriptor
View Source
var File_api_servicepb_loadgen_proto protoreflect.FileDescriptor
View Source
var File_api_servicepb_vcservice_proto protoreflect.FileDescriptor
View Source
var File_api_servicepb_verifier_proto protoreflect.FileDescriptor
View Source
var LoadGenService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "servicepb.LoadGenService",
	HandlerType: (*LoadGenServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AppendBatch",
			Handler:    _LoadGenService_AppendBatch_Handler,
		},
		{
			MethodName: "GetRateLimit",
			Handler:    _LoadGenService_GetRateLimit_Handler,
		},
		{
			MethodName: "SetRateLimit",
			Handler:    _LoadGenService_SetRateLimit_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/servicepb/loadgen.proto",
}

LoadGenService_ServiceDesc is the grpc.ServiceDesc for LoadGenService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ValidationAndCommitService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "servicepb.ValidationAndCommitService",
	HandlerType: (*ValidationAndCommitServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetLastCommittedBlockNumber",
			Handler:    _ValidationAndCommitService_SetLastCommittedBlockNumber_Handler,
		},
		{
			MethodName: "GetNextBlockNumberToCommit",
			Handler:    _ValidationAndCommitService_GetNextBlockNumberToCommit_Handler,
		},
		{
			MethodName: "GetTransactionsStatus",
			Handler:    _ValidationAndCommitService_GetTransactionsStatus_Handler,
		},
		{
			MethodName: "GetNamespacePolicies",
			Handler:    _ValidationAndCommitService_GetNamespacePolicies_Handler,
		},
		{
			MethodName: "GetConfigTransaction",
			Handler:    _ValidationAndCommitService_GetConfigTransaction_Handler,
		},
		{
			MethodName: "SetupSystemTablesAndNamespaces",
			Handler:    _ValidationAndCommitService_SetupSystemTablesAndNamespaces_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StartValidateAndCommitStream",
			Handler:       _ValidationAndCommitService_StartValidateAndCommitStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/servicepb/vcservice.proto",
}

ValidationAndCommitService_ServiceDesc is the grpc.ServiceDesc for ValidationAndCommitService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Verifier_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "servicepb.Verifier",
	HandlerType: (*VerifierServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StartStream",
			Handler:       _Verifier_StartStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/servicepb/verifier.proto",
}

Verifier_ServiceDesc is the grpc.ServiceDesc for Verifier service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCoordinatorServer

func RegisterCoordinatorServer(s grpc.ServiceRegistrar, srv CoordinatorServer)

func RegisterLoadGenServiceHandler

func RegisterLoadGenServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLoadGenServiceHandler registers the http handlers for service LoadGenService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLoadGenServiceHandlerClient

func RegisterLoadGenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LoadGenServiceClient) error

RegisterLoadGenServiceHandlerClient registers the http handlers for service LoadGenService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LoadGenServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LoadGenServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LoadGenServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterLoadGenServiceHandlerFromEndpoint

func RegisterLoadGenServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLoadGenServiceHandlerFromEndpoint is same as RegisterLoadGenServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLoadGenServiceHandlerServer

func RegisterLoadGenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LoadGenServiceServer) error

RegisterLoadGenServiceHandlerServer registers the http handlers for service LoadGenService to "mux". UnaryRPC :call LoadGenServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLoadGenServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterLoadGenServiceServer

func RegisterLoadGenServiceServer(s grpc.ServiceRegistrar, srv LoadGenServiceServer)

func RegisterValidationAndCommitServiceServer

func RegisterValidationAndCommitServiceServer(s grpc.ServiceRegistrar, srv ValidationAndCommitServiceServer)

func RegisterVerifierServer

func RegisterVerifierServer(s grpc.ServiceRegistrar, srv VerifierServer)

Types

type BlockRef

type BlockRef struct {
	Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

A block reference with respect to the block generated by the orderer.

func (*BlockRef) Descriptor deprecated

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

Deprecated: Use BlockRef.ProtoReflect.Descriptor instead.

func (*BlockRef) GetNumber

func (x *BlockRef) GetNumber() uint64

func (*BlockRef) ProtoMessage

func (*BlockRef) ProtoMessage()

func (*BlockRef) ProtoReflect

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

func (*BlockRef) Reset

func (x *BlockRef) Reset()

func (*BlockRef) String

func (x *BlockRef) String() string

type CoordinatorBatch

type CoordinatorBatch struct {
	Txs      []*TxWithRef            `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`           // List of transactions within the block.
	Rejected []*committerpb.TxStatus `protobuf:"bytes,2,rep,name=rejected,proto3" json:"rejected,omitempty"` // Rejected transactions.
	// contains filtered or unexported fields
}

A committer's representation of a block in the blockchain.

func (*CoordinatorBatch) Descriptor deprecated

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

Deprecated: Use CoordinatorBatch.ProtoReflect.Descriptor instead.

func (*CoordinatorBatch) GetRejected

func (x *CoordinatorBatch) GetRejected() []*committerpb.TxStatus

func (*CoordinatorBatch) GetTxs

func (x *CoordinatorBatch) GetTxs() []*TxWithRef

func (*CoordinatorBatch) ProtoMessage

func (*CoordinatorBatch) ProtoMessage()

func (*CoordinatorBatch) ProtoReflect

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

func (*CoordinatorBatch) Reset

func (x *CoordinatorBatch) Reset()

func (*CoordinatorBatch) String

func (x *CoordinatorBatch) String() string

type CoordinatorClient

type CoordinatorClient interface {
	BlockProcessing(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[CoordinatorBatch, committerpb.TxStatusBatch], error)
	SetLastCommittedBlockNumber(ctx context.Context, in *BlockRef, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetNextBlockNumberToCommit(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BlockRef, error)
	GetTransactionsStatus(ctx context.Context, in *committerpb.TxIDsBatch, opts ...grpc.CallOption) (*committerpb.TxStatusBatch, error)
	GetConfigTransaction(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*applicationpb.ConfigTransaction, error)
	NumberOfWaitingTransactionsForStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WaitingTransactions, error)
}

CoordinatorClient is the client API for Coordinator service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CoordinatorServer

type CoordinatorServer interface {
	BlockProcessing(grpc.BidiStreamingServer[CoordinatorBatch, committerpb.TxStatusBatch]) error
	SetLastCommittedBlockNumber(context.Context, *BlockRef) (*emptypb.Empty, error)
	GetNextBlockNumberToCommit(context.Context, *emptypb.Empty) (*BlockRef, error)
	GetTransactionsStatus(context.Context, *committerpb.TxIDsBatch) (*committerpb.TxStatusBatch, error)
	GetConfigTransaction(context.Context, *emptypb.Empty) (*applicationpb.ConfigTransaction, error)
	NumberOfWaitingTransactionsForStatus(context.Context, *emptypb.Empty) (*WaitingTransactions, error)
	// contains filtered or unexported methods
}

CoordinatorServer is the server API for Coordinator service. All implementations must embed UnimplementedCoordinatorServer for forward compatibility.

type Coordinator_BlockProcessingClient

type Coordinator_BlockProcessingClient = grpc.BidiStreamingClient[CoordinatorBatch, committerpb.TxStatusBatch]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Coordinator_BlockProcessingServer

type Coordinator_BlockProcessingServer = grpc.BidiStreamingServer[CoordinatorBatch, committerpb.TxStatusBatch]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Height

type Height struct {
	BlockNum uint64
	TxNum    uint32
}

Height represents the height of a transaction in blockchain.

func NewHeight

func NewHeight(blockNum uint64, txNum uint32) *Height

NewHeight constructs a new instance of Height.

func NewHeightFromBytes

func NewHeightFromBytes(b []byte) (*Height, int, error)

NewHeightFromBytes constructs a new instance of Height from serialized bytes.

func NewHeightFromTxRef

func NewHeightFromTxRef(ref *committerpb.TxRef) *Height

NewHeightFromTxRef constructs a new instance of Height.

func (*Height) String

func (h *Height) String() string

String returns string for printing.

func (*Height) ToBytes

func (h *Height) ToBytes() []byte

ToBytes serializes the Height.

func (*Height) WithStatus

func (h *Height) WithStatus(txID string, status committerpb.Status) *committerpb.TxStatus

WithStatus creates committerpb.TxStatus with this height and the given status.

type LoadGenBatch

type LoadGenBatch struct {
	Tx []*LoadGenTx `protobuf:"bytes,1,rep,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadGenBatch) Descriptor deprecated

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

Deprecated: Use LoadGenBatch.ProtoReflect.Descriptor instead.

func (*LoadGenBatch) GetTx

func (x *LoadGenBatch) GetTx() []*LoadGenTx

func (*LoadGenBatch) ProtoMessage

func (*LoadGenBatch) ProtoMessage()

func (*LoadGenBatch) ProtoReflect

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

func (*LoadGenBatch) Reset

func (x *LoadGenBatch) Reset()

func (*LoadGenBatch) String

func (x *LoadGenBatch) String() string

type LoadGenServiceClient

type LoadGenServiceClient interface {
	AppendBatch(ctx context.Context, in *LoadGenBatch, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetRateLimit(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RateLimit, error)
	SetRateLimit(ctx context.Context, in *RateLimit, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

LoadGenServiceClient is the client API for LoadGenService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type LoadGenServiceServer

type LoadGenServiceServer interface {
	AppendBatch(context.Context, *LoadGenBatch) (*emptypb.Empty, error)
	GetRateLimit(context.Context, *emptypb.Empty) (*RateLimit, error)
	SetRateLimit(context.Context, *RateLimit) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

LoadGenServiceServer is the server API for LoadGenService service. All implementations must embed UnimplementedLoadGenServiceServer for forward compatibility.

type LoadGenTx

type LoadGenTx struct {
	Id                 string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tx                 *applicationpb.Tx `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
	EnvelopePayload    []byte            `protobuf:"bytes,3,opt,name=envelope_payload,json=envelopePayload,proto3" json:"envelope_payload,omitempty"`
	EnvelopeSignature  []byte            `protobuf:"bytes,4,opt,name=envelope_signature,json=envelopeSignature,proto3" json:"envelope_signature,omitempty"`
	SerializedEnvelope []byte            `protobuf:"bytes,5,opt,name=serialized_envelope,json=serializedEnvelope,proto3" json:"serialized_envelope,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadGenTx) Descriptor deprecated

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

Deprecated: Use LoadGenTx.ProtoReflect.Descriptor instead.

func (*LoadGenTx) GetEnvelopePayload

func (x *LoadGenTx) GetEnvelopePayload() []byte

func (*LoadGenTx) GetEnvelopeSignature

func (x *LoadGenTx) GetEnvelopeSignature() []byte

func (*LoadGenTx) GetId

func (x *LoadGenTx) GetId() string

func (*LoadGenTx) GetSerializedEnvelope

func (x *LoadGenTx) GetSerializedEnvelope() []byte

func (*LoadGenTx) GetTx

func (x *LoadGenTx) GetTx() *applicationpb.Tx

func (*LoadGenTx) ProtoMessage

func (*LoadGenTx) ProtoMessage()

func (*LoadGenTx) ProtoReflect

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

func (*LoadGenTx) Reset

func (x *LoadGenTx) Reset()

func (*LoadGenTx) String

func (x *LoadGenTx) String() string

type RateLimit

type RateLimit struct {
	Rate uint64 `protobuf:"varint,1,opt,name=rate,proto3" json:"rate,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimit) Descriptor deprecated

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

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetRate

func (x *RateLimit) GetRate() uint64

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) ProtoReflect

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

func (*RateLimit) Reset

func (x *RateLimit) Reset()

func (*RateLimit) String

func (x *RateLimit) String() string

type TxWithRef

type TxWithRef struct {
	Ref     *committerpb.TxRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`         // The TX reference.
	Content *applicationpb.Tx  `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // The TX content.
	// contains filtered or unexported fields
}

A committer's representation of a TX in the blockchain.

func (*TxWithRef) Descriptor deprecated

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

Deprecated: Use TxWithRef.ProtoReflect.Descriptor instead.

func (*TxWithRef) GetContent

func (x *TxWithRef) GetContent() *applicationpb.Tx

func (*TxWithRef) GetRef

func (x *TxWithRef) GetRef() *committerpb.TxRef

func (*TxWithRef) ProtoMessage

func (*TxWithRef) ProtoMessage()

func (*TxWithRef) ProtoReflect

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

func (*TxWithRef) Reset

func (x *TxWithRef) Reset()

func (*TxWithRef) String

func (x *TxWithRef) String() string

type UnimplementedCoordinatorServer

type UnimplementedCoordinatorServer struct{}

UnimplementedCoordinatorServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCoordinatorServer) GetConfigTransaction

func (UnimplementedCoordinatorServer) GetNextBlockNumberToCommit

func (UnimplementedCoordinatorServer) GetNextBlockNumberToCommit(context.Context, *emptypb.Empty) (*BlockRef, error)

func (UnimplementedCoordinatorServer) GetTransactionsStatus

func (UnimplementedCoordinatorServer) NumberOfWaitingTransactionsForStatus

func (UnimplementedCoordinatorServer) NumberOfWaitingTransactionsForStatus(context.Context, *emptypb.Empty) (*WaitingTransactions, error)

func (UnimplementedCoordinatorServer) SetLastCommittedBlockNumber

func (UnimplementedCoordinatorServer) SetLastCommittedBlockNumber(context.Context, *BlockRef) (*emptypb.Empty, error)

type UnimplementedLoadGenServiceServer

type UnimplementedLoadGenServiceServer struct{}

UnimplementedLoadGenServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedLoadGenServiceServer) AppendBatch

func (UnimplementedLoadGenServiceServer) GetRateLimit

func (UnimplementedLoadGenServiceServer) SetRateLimit

type UnimplementedValidationAndCommitServiceServer

type UnimplementedValidationAndCommitServiceServer struct{}

UnimplementedValidationAndCommitServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedValidationAndCommitServiceServer) GetConfigTransaction

func (UnimplementedValidationAndCommitServiceServer) GetNamespacePolicies

func (UnimplementedValidationAndCommitServiceServer) GetNextBlockNumberToCommit

func (UnimplementedValidationAndCommitServiceServer) GetTransactionsStatus

func (UnimplementedValidationAndCommitServiceServer) SetLastCommittedBlockNumber

func (UnimplementedValidationAndCommitServiceServer) SetupSystemTablesAndNamespaces

func (UnimplementedValidationAndCommitServiceServer) StartValidateAndCommitStream

type UnimplementedVerifierServer

type UnimplementedVerifierServer struct{}

UnimplementedVerifierServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeCoordinatorServer

type UnsafeCoordinatorServer interface {
	// contains filtered or unexported methods
}

UnsafeCoordinatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoordinatorServer will result in compilation errors.

type UnsafeLoadGenServiceServer

type UnsafeLoadGenServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLoadGenServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoadGenServiceServer will result in compilation errors.

type UnsafeValidationAndCommitServiceServer

type UnsafeValidationAndCommitServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeValidationAndCommitServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidationAndCommitServiceServer will result in compilation errors.

type UnsafeVerifierServer

type UnsafeVerifierServer interface {
	// contains filtered or unexported methods
}

UnsafeVerifierServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VerifierServer will result in compilation errors.

type ValidationAndCommitServiceClient

type ValidationAndCommitServiceClient interface {
	StartValidateAndCommitStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[VcBatch, committerpb.TxStatusBatch], error)
	SetLastCommittedBlockNumber(ctx context.Context, in *BlockRef, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetNextBlockNumberToCommit(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BlockRef, error)
	GetTransactionsStatus(ctx context.Context, in *committerpb.TxIDsBatch, opts ...grpc.CallOption) (*committerpb.TxStatusBatch, error)
	GetNamespacePolicies(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*applicationpb.NamespacePolicies, error)
	GetConfigTransaction(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*applicationpb.ConfigTransaction, error)
	SetupSystemTablesAndNamespaces(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ValidationAndCommitServiceClient is the client API for ValidationAndCommitService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ValidationAndCommitServiceServer

type ValidationAndCommitServiceServer interface {
	StartValidateAndCommitStream(grpc.BidiStreamingServer[VcBatch, committerpb.TxStatusBatch]) error
	SetLastCommittedBlockNumber(context.Context, *BlockRef) (*emptypb.Empty, error)
	GetNextBlockNumberToCommit(context.Context, *emptypb.Empty) (*BlockRef, error)
	GetTransactionsStatus(context.Context, *committerpb.TxIDsBatch) (*committerpb.TxStatusBatch, error)
	GetNamespacePolicies(context.Context, *emptypb.Empty) (*applicationpb.NamespacePolicies, error)
	GetConfigTransaction(context.Context, *emptypb.Empty) (*applicationpb.ConfigTransaction, error)
	SetupSystemTablesAndNamespaces(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ValidationAndCommitServiceServer is the server API for ValidationAndCommitService service. All implementations must embed UnimplementedValidationAndCommitServiceServer for forward compatibility.

type ValidationAndCommitService_StartValidateAndCommitStreamClient

type ValidationAndCommitService_StartValidateAndCommitStreamClient = grpc.BidiStreamingClient[VcBatch, committerpb.TxStatusBatch]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ValidationAndCommitService_StartValidateAndCommitStreamServer

type ValidationAndCommitService_StartValidateAndCommitStreamServer = grpc.BidiStreamingServer[VcBatch, committerpb.TxStatusBatch]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type VcBatch

type VcBatch struct {
	Transactions []*VcTx `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*VcBatch) Descriptor deprecated

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

Deprecated: Use VcBatch.ProtoReflect.Descriptor instead.

func (*VcBatch) GetTransactions

func (x *VcBatch) GetTransactions() []*VcTx

func (*VcBatch) ProtoMessage

func (*VcBatch) ProtoMessage()

func (*VcBatch) ProtoReflect

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

func (*VcBatch) Reset

func (x *VcBatch) Reset()

func (*VcBatch) String

func (x *VcBatch) String() string

type VcTx

type VcTx struct {
	Ref                   *committerpb.TxRef           `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	Namespaces            []*applicationpb.TxNamespace `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	PrelimInvalidTxStatus *committerpb.Status          `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VcTx) Descriptor deprecated

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

Deprecated: Use VcTx.ProtoReflect.Descriptor instead.

func (*VcTx) GetNamespaces

func (x *VcTx) GetNamespaces() []*applicationpb.TxNamespace

func (*VcTx) GetPrelimInvalidTxStatus

func (x *VcTx) GetPrelimInvalidTxStatus() committerpb.Status

func (*VcTx) GetRef

func (x *VcTx) GetRef() *committerpb.TxRef

func (*VcTx) ProtoMessage

func (*VcTx) ProtoMessage()

func (*VcTx) ProtoReflect

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

func (*VcTx) Reset

func (x *VcTx) Reset()

func (*VcTx) String

func (x *VcTx) String() string

type VerifierBatch

type VerifierBatch struct {
	Update   *VerifierUpdates `protobuf:"bytes,1,opt,name=update,proto3,oneof" json:"update,omitempty"`
	Requests []*TxWithRef     `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifierBatch) Descriptor deprecated

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

Deprecated: Use VerifierBatch.ProtoReflect.Descriptor instead.

func (*VerifierBatch) GetRequests

func (x *VerifierBatch) GetRequests() []*TxWithRef

func (*VerifierBatch) GetUpdate

func (x *VerifierBatch) GetUpdate() *VerifierUpdates

func (*VerifierBatch) ProtoMessage

func (*VerifierBatch) ProtoMessage()

func (*VerifierBatch) ProtoReflect

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

func (*VerifierBatch) Reset

func (x *VerifierBatch) Reset()

func (*VerifierBatch) String

func (x *VerifierBatch) String() string

type VerifierClient

type VerifierClient interface {
	StartStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[VerifierBatch, committerpb.TxStatusBatch], error)
}

VerifierClient is the client API for Verifier service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewVerifierClient

func NewVerifierClient(cc grpc.ClientConnInterface) VerifierClient

type VerifierServer

type VerifierServer interface {
	StartStream(grpc.BidiStreamingServer[VerifierBatch, committerpb.TxStatusBatch]) error
	// contains filtered or unexported methods
}

VerifierServer is the server API for Verifier service. All implementations must embed UnimplementedVerifierServer for forward compatibility.

type VerifierUpdates

type VerifierUpdates struct {
	Config            *applicationpb.ConfigTransaction `protobuf:"bytes,1,opt,name=config,proto3,oneof" json:"config,omitempty"`
	NamespacePolicies *applicationpb.NamespacePolicies `protobuf:"bytes,2,opt,name=namespace_policies,json=namespacePolicies,proto3,oneof" json:"namespace_policies,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifierUpdates) Descriptor deprecated

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

Deprecated: Use VerifierUpdates.ProtoReflect.Descriptor instead.

func (*VerifierUpdates) GetConfig

func (*VerifierUpdates) GetNamespacePolicies

func (x *VerifierUpdates) GetNamespacePolicies() *applicationpb.NamespacePolicies

func (*VerifierUpdates) ProtoMessage

func (*VerifierUpdates) ProtoMessage()

func (*VerifierUpdates) ProtoReflect

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

func (*VerifierUpdates) Reset

func (x *VerifierUpdates) Reset()

func (*VerifierUpdates) String

func (x *VerifierUpdates) String() string

type Verifier_StartStreamClient

type Verifier_StartStreamClient = grpc.BidiStreamingClient[VerifierBatch, committerpb.TxStatusBatch]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Verifier_StartStreamServer

type Verifier_StartStreamServer = grpc.BidiStreamingServer[VerifierBatch, committerpb.TxStatusBatch]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type WaitingTransactions

type WaitingTransactions struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*WaitingTransactions) Descriptor deprecated

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

Deprecated: Use WaitingTransactions.ProtoReflect.Descriptor instead.

func (*WaitingTransactions) GetCount

func (x *WaitingTransactions) GetCount() int32

func (*WaitingTransactions) ProtoMessage

func (*WaitingTransactions) ProtoMessage()

func (*WaitingTransactions) ProtoReflect

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

func (*WaitingTransactions) Reset

func (x *WaitingTransactions) Reset()

func (*WaitingTransactions) String

func (x *WaitingTransactions) String() string

Jump to

Keyboard shortcuts

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