protovcservice

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_api_protovcservice_vcservice_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetTransactions added in v0.1.6

func (x *Batch) GetTransactions() []*Tx

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

func (*Batch) Reset added in v0.1.6

func (x *Batch) Reset()

func (*Batch) String added in v0.1.6

func (x *Batch) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Tx.ProtoReflect.Descriptor instead.

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

func (*Tx) Reset added in v0.1.6

func (x *Tx) Reset()

func (*Tx) String added in v0.1.6

func (x *Tx) String() string

type UnimplementedValidationAndCommitServiceServer

type UnimplementedValidationAndCommitServiceServer struct {
}

UnimplementedValidationAndCommitServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedValidationAndCommitServiceServer) GetConfigTransaction

func (UnimplementedValidationAndCommitServiceServer) GetLastCommittedBlockNumber

func (UnimplementedValidationAndCommitServiceServer) GetNamespacePolicies

func (UnimplementedValidationAndCommitServiceServer) GetTransactionsStatus

func (UnimplementedValidationAndCommitServiceServer) SetLastCommittedBlockNumber

func (UnimplementedValidationAndCommitServiceServer) SetupSystemTablesAndNamespaces

func (UnimplementedValidationAndCommitServiceServer) StartValidateAndCommitStream

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.

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
}

Jump to

Keyboard shortcuts

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