Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterVerifierServer(s grpc.ServiceRegistrar, srv VerifierServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBlockNum() uint64
- func (x *Request) GetTx() *protoblocktx.Tx
- func (x *Request) GetTxNum() uint64
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type RequestBatch
- func (*RequestBatch) Descriptor() ([]byte, []int)deprecated
- func (x *RequestBatch) GetRequests() []*Request
- func (x *RequestBatch) GetUpdate() *Update
- func (*RequestBatch) ProtoMessage()
- func (x *RequestBatch) ProtoReflect() protoreflect.Message
- func (x *RequestBatch) Reset()
- func (x *RequestBatch) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBlockNum() uint64
- func (x *Response) GetStatus() protoblocktx.Status
- func (x *Response) GetTxId() string
- func (x *Response) GetTxNum() uint64
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type ResponseBatch
- type UnimplementedVerifierServer
- type UnsafeVerifierServer
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetConfig() *protoblocktx.ConfigTransaction
- func (x *Update) GetNamespacePolicies() *protoblocktx.NamespacePolicies
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
- type VerifierClient
- type VerifierServer
- type Verifier_StartStreamClient
- type Verifier_StartStreamServer
Constants ¶
const (
Verifier_StartStream_FullMethodName = "/protosigverifierservice.Verifier/StartStream"
)
Variables ¶
var File_api_protosigverifierservice_verifier_proto protoreflect.FileDescriptor
var Verifier_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protosigverifierservice.Verifier", HandlerType: (*VerifierServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "StartStream", Handler: _Verifier_StartStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "api/protosigverifierservice/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 RegisterVerifierServer ¶
func RegisterVerifierServer(s grpc.ServiceRegistrar, srv VerifierServer)
Types ¶
type Request ¶
type Request struct {
BlockNum uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
TxNum uint64 `protobuf:"varint,2,opt,name=tx_num,json=txNum,proto3" json:"tx_num,omitempty"`
Tx *protoblocktx.Tx `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetBlockNum ¶
func (*Request) GetTx ¶
func (x *Request) GetTx() *protoblocktx.Tx
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type RequestBatch ¶
type RequestBatch struct {
Update *Update `protobuf:"bytes,1,opt,name=update,proto3,oneof" json:"update,omitempty"`
Requests []*Request `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
// contains filtered or unexported fields
}
func (*RequestBatch) Descriptor
deprecated
func (*RequestBatch) Descriptor() ([]byte, []int)
Deprecated: Use RequestBatch.ProtoReflect.Descriptor instead.
func (*RequestBatch) GetRequests ¶
func (x *RequestBatch) GetRequests() []*Request
func (*RequestBatch) GetUpdate ¶
func (x *RequestBatch) GetUpdate() *Update
func (*RequestBatch) ProtoMessage ¶
func (*RequestBatch) ProtoMessage()
func (*RequestBatch) ProtoReflect ¶
func (x *RequestBatch) ProtoReflect() protoreflect.Message
func (*RequestBatch) Reset ¶
func (x *RequestBatch) Reset()
func (*RequestBatch) String ¶
func (x *RequestBatch) String() string
type Response ¶
type Response struct {
BlockNum uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
TxNum uint64 `protobuf:"varint,2,opt,name=tx_num,json=txNum,proto3" json:"tx_num,omitempty"`
TxId string `protobuf:"bytes,3,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
Status protoblocktx.Status `protobuf:"varint,4,opt,name=status,proto3,enum=protoblocktx.Status" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) GetBlockNum ¶
func (*Response) GetStatus ¶
func (x *Response) GetStatus() protoblocktx.Status
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ResponseBatch ¶
type ResponseBatch struct {
Responses []*Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
// contains filtered or unexported fields
}
func (*ResponseBatch) Descriptor
deprecated
func (*ResponseBatch) Descriptor() ([]byte, []int)
Deprecated: Use ResponseBatch.ProtoReflect.Descriptor instead.
func (*ResponseBatch) GetResponses ¶
func (x *ResponseBatch) GetResponses() []*Response
func (*ResponseBatch) ProtoMessage ¶
func (*ResponseBatch) ProtoMessage()
func (*ResponseBatch) ProtoReflect ¶
func (x *ResponseBatch) ProtoReflect() protoreflect.Message
func (*ResponseBatch) Reset ¶
func (x *ResponseBatch) Reset()
func (*ResponseBatch) String ¶
func (x *ResponseBatch) String() string
type UnimplementedVerifierServer ¶
type UnimplementedVerifierServer struct {
}
UnimplementedVerifierServer must be embedded to have forward compatible implementations.
func (UnimplementedVerifierServer) StartStream ¶
func (UnimplementedVerifierServer) StartStream(Verifier_StartStreamServer) error
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 Update ¶
type Update struct {
Config *protoblocktx.ConfigTransaction `protobuf:"bytes,1,opt,name=config,proto3,oneof" json:"config,omitempty"`
NamespacePolicies *protoblocktx.NamespacePolicies `protobuf:"bytes,2,opt,name=namespace_policies,json=namespacePolicies,proto3,oneof" json:"namespace_policies,omitempty"`
// contains filtered or unexported fields
}
func (*Update) Descriptor
deprecated
func (*Update) GetConfig ¶
func (x *Update) GetConfig() *protoblocktx.ConfigTransaction
func (*Update) GetNamespacePolicies ¶
func (x *Update) GetNamespacePolicies() *protoblocktx.NamespacePolicies
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
type VerifierClient ¶
type VerifierClient interface {
StartStream(ctx context.Context, opts ...grpc.CallOption) (Verifier_StartStreamClient, 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(Verifier_StartStreamServer) error
// contains filtered or unexported methods
}
VerifierServer is the server API for Verifier service. All implementations must embed UnimplementedVerifierServer for forward compatibility
type Verifier_StartStreamClient ¶
type Verifier_StartStreamClient interface {
Send(*RequestBatch) error
Recv() (*ResponseBatch, error)
grpc.ClientStream
}
type Verifier_StartStreamServer ¶
type Verifier_StartStreamServer interface {
Send(*ResponseBatch) error
Recv() (*RequestBatch, error)
grpc.ServerStream
}