Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterValidationAndCommitServiceServer(s grpc.ServiceRegistrar, srv ValidationAndCommitServiceServer)
- type Batch
- type InvalidTxStatus
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)deprecated
- func (x *Tx) GetNamespaces() []*protoblocktx.TxNamespace
- func (x *Tx) GetPrelimInvalidTxStatus() *InvalidTxStatus
- func (x *Tx) GetRef() *protocoordinatorservice.TxRef
- func (*Tx) ProtoMessage()
- func (x *Tx) ProtoReflect() protoreflect.Message
- func (x *Tx) Reset()
- func (x *Tx) String() string
- type UnimplementedValidationAndCommitServiceServer
- func (UnimplementedValidationAndCommitServiceServer) GetConfigTransaction(context.Context, *emptypb.Empty) (*protoblocktx.ConfigTransaction, error)
- func (UnimplementedValidationAndCommitServiceServer) GetLastCommittedBlockNumber(context.Context, *emptypb.Empty) (*protoblocktx.LastCommittedBlock, error)
- func (UnimplementedValidationAndCommitServiceServer) GetNamespacePolicies(context.Context, *emptypb.Empty) (*protoblocktx.NamespacePolicies, error)
- func (UnimplementedValidationAndCommitServiceServer) GetTransactionsStatus(context.Context, *protoblocktx.QueryStatus) (*protoblocktx.TransactionsStatus, error)
- func (UnimplementedValidationAndCommitServiceServer) SetLastCommittedBlockNumber(context.Context, *protoblocktx.BlockInfo) (*emptypb.Empty, error)
- func (UnimplementedValidationAndCommitServiceServer) SetupSystemTablesAndNamespaces(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedValidationAndCommitServiceServer) StartValidateAndCommitStream(ValidationAndCommitService_StartValidateAndCommitStreamServer) error
- type UnsafeValidationAndCommitServiceServer
- type ValidationAndCommitServiceClient
- type ValidationAndCommitServiceServer
- type ValidationAndCommitService_StartValidateAndCommitStreamClient
- type ValidationAndCommitService_StartValidateAndCommitStreamServer
Constants ¶
const ( ValidationAndCommitService_StartValidateAndCommitStream_FullMethodName = "/protovcservice.ValidationAndCommitService/StartValidateAndCommitStream" ValidationAndCommitService_SetLastCommittedBlockNumber_FullMethodName = "/protovcservice.ValidationAndCommitService/SetLastCommittedBlockNumber" ValidationAndCommitService_GetLastCommittedBlockNumber_FullMethodName = "/protovcservice.ValidationAndCommitService/GetLastCommittedBlockNumber" ValidationAndCommitService_GetTransactionsStatus_FullMethodName = "/protovcservice.ValidationAndCommitService/GetTransactionsStatus" ValidationAndCommitService_GetNamespacePolicies_FullMethodName = "/protovcservice.ValidationAndCommitService/GetNamespacePolicies" ValidationAndCommitService_GetConfigTransaction_FullMethodName = "/protovcservice.ValidationAndCommitService/GetConfigTransaction" ValidationAndCommitService_SetupSystemTablesAndNamespaces_FullMethodName = "/protovcservice.ValidationAndCommitService/SetupSystemTablesAndNamespaces" )
Variables ¶
var File_api_protovcservice_vcservice_proto protoreflect.FileDescriptor
var ValidationAndCommitService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protovcservice.ValidationAndCommitService", HandlerType: (*ValidationAndCommitServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetLastCommittedBlockNumber", Handler: _ValidationAndCommitService_SetLastCommittedBlockNumber_Handler, }, { MethodName: "GetLastCommittedBlockNumber", Handler: _ValidationAndCommitService_GetLastCommittedBlockNumber_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/protovcservice/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)
Functions ¶
func RegisterValidationAndCommitServiceServer ¶
func RegisterValidationAndCommitServiceServer(s grpc.ServiceRegistrar, srv ValidationAndCommitServiceServer)
Types ¶
type Batch ¶ added in v0.1.6
type Batch struct {
Transactions []*Tx `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
// contains filtered or unexported fields
}
func (*Batch) Descriptor
deprecated
added in
v0.1.6
func (*Batch) GetTransactions ¶ added in v0.1.6
func (*Batch) ProtoMessage ¶ added in v0.1.6
func (*Batch) ProtoMessage()
func (*Batch) ProtoReflect ¶ added in v0.1.6
func (x *Batch) ProtoReflect() protoreflect.Message
type InvalidTxStatus ¶
type InvalidTxStatus struct {
Code protoblocktx.Status `protobuf:"varint,1,opt,name=code,proto3,enum=protoblocktx.Status" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*InvalidTxStatus) Descriptor
deprecated
func (*InvalidTxStatus) Descriptor() ([]byte, []int)
Deprecated: Use InvalidTxStatus.ProtoReflect.Descriptor instead.
func (*InvalidTxStatus) GetCode ¶
func (x *InvalidTxStatus) GetCode() protoblocktx.Status
func (*InvalidTxStatus) ProtoMessage ¶
func (*InvalidTxStatus) ProtoMessage()
func (*InvalidTxStatus) ProtoReflect ¶
func (x *InvalidTxStatus) ProtoReflect() protoreflect.Message
func (*InvalidTxStatus) Reset ¶
func (x *InvalidTxStatus) Reset()
func (*InvalidTxStatus) String ¶
func (x *InvalidTxStatus) String() string
type Tx ¶ added in v0.1.6
type Tx struct {
Ref *protocoordinatorservice.TxRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
Namespaces []*protoblocktx.TxNamespace `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
PrelimInvalidTxStatus *InvalidTxStatus `` /* 134-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Tx) Descriptor
deprecated
added in
v0.1.6
func (*Tx) GetNamespaces ¶ added in v0.1.6
func (x *Tx) GetNamespaces() []*protoblocktx.TxNamespace
func (*Tx) GetPrelimInvalidTxStatus ¶ added in v0.1.6
func (x *Tx) GetPrelimInvalidTxStatus() *InvalidTxStatus
func (*Tx) GetRef ¶ added in v0.1.6
func (x *Tx) GetRef() *protocoordinatorservice.TxRef
func (*Tx) ProtoMessage ¶ added in v0.1.6
func (*Tx) ProtoMessage()
func (*Tx) ProtoReflect ¶ added in v0.1.6
func (x *Tx) ProtoReflect() protoreflect.Message
type UnimplementedValidationAndCommitServiceServer ¶
type UnimplementedValidationAndCommitServiceServer struct {
}
UnimplementedValidationAndCommitServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedValidationAndCommitServiceServer) GetConfigTransaction ¶
func (UnimplementedValidationAndCommitServiceServer) GetConfigTransaction(context.Context, *emptypb.Empty) (*protoblocktx.ConfigTransaction, error)
func (UnimplementedValidationAndCommitServiceServer) GetLastCommittedBlockNumber ¶
func (UnimplementedValidationAndCommitServiceServer) GetLastCommittedBlockNumber(context.Context, *emptypb.Empty) (*protoblocktx.LastCommittedBlock, error)
func (UnimplementedValidationAndCommitServiceServer) GetNamespacePolicies ¶
func (UnimplementedValidationAndCommitServiceServer) GetNamespacePolicies(context.Context, *emptypb.Empty) (*protoblocktx.NamespacePolicies, error)
func (UnimplementedValidationAndCommitServiceServer) GetTransactionsStatus ¶
func (UnimplementedValidationAndCommitServiceServer) GetTransactionsStatus(context.Context, *protoblocktx.QueryStatus) (*protoblocktx.TransactionsStatus, error)
func (UnimplementedValidationAndCommitServiceServer) SetLastCommittedBlockNumber ¶
func (UnimplementedValidationAndCommitServiceServer) SetLastCommittedBlockNumber(context.Context, *protoblocktx.BlockInfo) (*emptypb.Empty, error)
func (UnimplementedValidationAndCommitServiceServer) SetupSystemTablesAndNamespaces ¶
func (UnimplementedValidationAndCommitServiceServer) StartValidateAndCommitStream ¶
func (UnimplementedValidationAndCommitServiceServer) StartValidateAndCommitStream(ValidationAndCommitService_StartValidateAndCommitStreamServer) error
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 ValidationAndCommitServiceClient ¶
type ValidationAndCommitServiceClient interface {
StartValidateAndCommitStream(ctx context.Context, opts ...grpc.CallOption) (ValidationAndCommitService_StartValidateAndCommitStreamClient, error)
SetLastCommittedBlockNumber(ctx context.Context, in *protoblocktx.BlockInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetLastCommittedBlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*protoblocktx.LastCommittedBlock, error)
GetTransactionsStatus(ctx context.Context, in *protoblocktx.QueryStatus, opts ...grpc.CallOption) (*protoblocktx.TransactionsStatus, error)
GetNamespacePolicies(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*protoblocktx.NamespacePolicies, error)
GetConfigTransaction(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*protoblocktx.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.
func NewValidationAndCommitServiceClient ¶
func NewValidationAndCommitServiceClient(cc grpc.ClientConnInterface) ValidationAndCommitServiceClient
type ValidationAndCommitServiceServer ¶
type ValidationAndCommitServiceServer interface {
StartValidateAndCommitStream(ValidationAndCommitService_StartValidateAndCommitStreamServer) error
SetLastCommittedBlockNumber(context.Context, *protoblocktx.BlockInfo) (*emptypb.Empty, error)
GetLastCommittedBlockNumber(context.Context, *emptypb.Empty) (*protoblocktx.LastCommittedBlock, error)
GetTransactionsStatus(context.Context, *protoblocktx.QueryStatus) (*protoblocktx.TransactionsStatus, error)
GetNamespacePolicies(context.Context, *emptypb.Empty) (*protoblocktx.NamespacePolicies, error)
GetConfigTransaction(context.Context, *emptypb.Empty) (*protoblocktx.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 interface {
Send(*Batch) error
Recv() (*protoblocktx.TransactionsStatus, error)
grpc.ClientStream
}
type ValidationAndCommitService_StartValidateAndCommitStreamServer ¶
type ValidationAndCommitService_StartValidateAndCommitStreamServer interface {
Send(*protoblocktx.TransactionsStatus) error
Recv() (*Batch, error)
grpc.ServerStream
}