Documentation ¶
Index ¶
- Variables
- func RegisterFairnodeServiceServer(s grpc.ServiceRegistrar, srv FairnodeServiceServer)
- func RegisterFairnodeSyncServiceServer(s grpc.ServiceRegistrar, srv FairnodeSyncServiceServer)
- type FairnodeServiceClient
- type FairnodeServiceServer
- type FairnodeService_ProcessControllerClient
- type FairnodeService_ProcessControllerServer
- type FairnodeService_SealConfirmClient
- type FairnodeService_SealConfirmServer
- type FairnodeSyncServiceClient
- type FairnodeSyncServiceServer
- type FairnodeSyncService_SyncControllerClient
- type FairnodeSyncService_SyncControllerServer
- type UnimplementedFairnodeServiceServer
- func (UnimplementedFairnodeServiceServer) HeartBeat(context.Context, *common.HeartBeat) (*emptypb.Empty, error)
- func (UnimplementedFairnodeServiceServer) ProcessController(*common.Participate, FairnodeService_ProcessControllerServer) error
- func (UnimplementedFairnodeServiceServer) RequestFairnodeSign(context.Context, *common.ReqFairnodeSign) (*common.ResFairnodeSign, error)
- func (UnimplementedFairnodeServiceServer) RequestLeague(context.Context, *common.ReqLeague) (*common.ResLeague, error)
- func (UnimplementedFairnodeServiceServer) RequestOtprn(context.Context, *common.ReqOtprn) (*common.ResOtprn, error)
- func (UnimplementedFairnodeServiceServer) RequestVoteResult(context.Context, *common.ReqVoteResult) (*common.ResVoteResult, error)
- func (UnimplementedFairnodeServiceServer) SealConfirm(*common.ReqConfirmSeal, FairnodeService_SealConfirmServer) error
- func (UnimplementedFairnodeServiceServer) SendBlock(context.Context, *common.ReqBlock) (*emptypb.Empty, error)
- func (UnimplementedFairnodeServiceServer) Vote(context.Context, *common.Vote) (*emptypb.Empty, error)
- type UnimplementedFairnodeSyncServiceServer
- type UnsafeFairnodeServiceServer
- type UnsafeFairnodeSyncServiceServer
Constants ¶
This section is empty.
Variables ¶
var FairnodeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fairnode.FairnodeService", HandlerType: (*FairnodeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HeartBeat", Handler: _FairnodeService_HeartBeat_Handler, }, { MethodName: "RequestOtprn", Handler: _FairnodeService_RequestOtprn_Handler, }, { MethodName: "RequestLeague", Handler: _FairnodeService_RequestLeague_Handler, }, { MethodName: "Vote", Handler: _FairnodeService_Vote_Handler, }, { MethodName: "RequestVoteResult", Handler: _FairnodeService_RequestVoteResult_Handler, }, { MethodName: "SendBlock", Handler: _FairnodeService_SendBlock_Handler, }, { MethodName: "RequestFairnodeSign", Handler: _FairnodeService_RequestFairnodeSign_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ProcessController", Handler: _FairnodeService_ProcessController_Handler, ServerStreams: true, }, { StreamName: "SealConfirm", Handler: _FairnodeService_SealConfirm_Handler, ServerStreams: true, }, }, Metadata: "fairnode/fairnode.proto", }
FairnodeService_ServiceDesc is the grpc.ServiceDesc for FairnodeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var FairnodeSyncService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fairnode.FairnodeSyncService", HandlerType: (*FairnodeSyncServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "SyncController", Handler: _FairnodeSyncService_SyncController_Handler, ServerStreams: true, }, }, Metadata: "fairnode/fairnode.proto", }
FairnodeSyncService_ServiceDesc is the grpc.ServiceDesc for FairnodeSyncService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_fairnode_fairnode_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFairnodeServiceServer ¶
func RegisterFairnodeServiceServer(s grpc.ServiceRegistrar, srv FairnodeServiceServer)
func RegisterFairnodeSyncServiceServer ¶
func RegisterFairnodeSyncServiceServer(s grpc.ServiceRegistrar, srv FairnodeSyncServiceServer)
Types ¶
type FairnodeServiceClient ¶
type FairnodeServiceClient interface { HeartBeat(ctx context.Context, in *common.HeartBeat, opts ...grpc.CallOption) (*emptypb.Empty, error) RequestOtprn(ctx context.Context, in *common.ReqOtprn, opts ...grpc.CallOption) (*common.ResOtprn, error) ProcessController(ctx context.Context, in *common.Participate, opts ...grpc.CallOption) (FairnodeService_ProcessControllerClient, error) RequestLeague(ctx context.Context, in *common.ReqLeague, opts ...grpc.CallOption) (*common.ResLeague, error) Vote(ctx context.Context, in *common.Vote, opts ...grpc.CallOption) (*emptypb.Empty, error) RequestVoteResult(ctx context.Context, in *common.ReqVoteResult, opts ...grpc.CallOption) (*common.ResVoteResult, error) SealConfirm(ctx context.Context, in *common.ReqConfirmSeal, opts ...grpc.CallOption) (FairnodeService_SealConfirmClient, error) SendBlock(ctx context.Context, in *common.ReqBlock, opts ...grpc.CallOption) (*emptypb.Empty, error) RequestFairnodeSign(ctx context.Context, in *common.ReqFairnodeSign, opts ...grpc.CallOption) (*common.ResFairnodeSign, error) }
FairnodeServiceClient is the client API for FairnodeService 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 NewFairnodeServiceClient ¶
func NewFairnodeServiceClient(cc grpc.ClientConnInterface) FairnodeServiceClient
type FairnodeServiceServer ¶
type FairnodeServiceServer interface { HeartBeat(context.Context, *common.HeartBeat) (*emptypb.Empty, error) RequestOtprn(context.Context, *common.ReqOtprn) (*common.ResOtprn, error) ProcessController(*common.Participate, FairnodeService_ProcessControllerServer) error RequestLeague(context.Context, *common.ReqLeague) (*common.ResLeague, error) Vote(context.Context, *common.Vote) (*emptypb.Empty, error) RequestVoteResult(context.Context, *common.ReqVoteResult) (*common.ResVoteResult, error) SealConfirm(*common.ReqConfirmSeal, FairnodeService_SealConfirmServer) error SendBlock(context.Context, *common.ReqBlock) (*emptypb.Empty, error) RequestFairnodeSign(context.Context, *common.ReqFairnodeSign) (*common.ResFairnodeSign, error) }
FairnodeServiceServer is the server API for FairnodeService service. All implementations should embed UnimplementedFairnodeServiceServer for forward compatibility
type FairnodeService_ProcessControllerClient ¶
type FairnodeService_ProcessControllerClient interface { Recv() (*common.ProcessMessage, error) grpc.ClientStream }
type FairnodeService_ProcessControllerServer ¶
type FairnodeService_ProcessControllerServer interface { Send(*common.ProcessMessage) error grpc.ServerStream }
type FairnodeService_SealConfirmClient ¶
type FairnodeService_SealConfirmClient interface { Recv() (*common.ResConfirmSeal, error) grpc.ClientStream }
type FairnodeService_SealConfirmServer ¶
type FairnodeService_SealConfirmServer interface { Send(*common.ResConfirmSeal) error grpc.ServerStream }
type FairnodeSyncServiceClient ¶
type FairnodeSyncServiceClient interface {
SyncController(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (FairnodeSyncService_SyncControllerClient, error)
}
FairnodeSyncServiceClient is the client API for FairnodeSyncService 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 NewFairnodeSyncServiceClient ¶
func NewFairnodeSyncServiceClient(cc grpc.ClientConnInterface) FairnodeSyncServiceClient
type FairnodeSyncServiceServer ¶
type FairnodeSyncServiceServer interface {
SyncController(*emptypb.Empty, FairnodeSyncService_SyncControllerServer) error
}
FairnodeSyncServiceServer is the server API for FairnodeSyncService service. All implementations should embed UnimplementedFairnodeSyncServiceServer for forward compatibility
type FairnodeSyncService_SyncControllerClient ¶
type FairnodeSyncService_SyncControllerClient interface { Recv() (*common.FairnodeMessage, error) grpc.ClientStream }
type FairnodeSyncService_SyncControllerServer ¶
type FairnodeSyncService_SyncControllerServer interface { Send(*common.FairnodeMessage) error grpc.ServerStream }
type UnimplementedFairnodeServiceServer ¶
type UnimplementedFairnodeServiceServer struct { }
UnimplementedFairnodeServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFairnodeServiceServer) ProcessController ¶
func (UnimplementedFairnodeServiceServer) ProcessController(*common.Participate, FairnodeService_ProcessControllerServer) error
func (UnimplementedFairnodeServiceServer) RequestFairnodeSign ¶
func (UnimplementedFairnodeServiceServer) RequestFairnodeSign(context.Context, *common.ReqFairnodeSign) (*common.ResFairnodeSign, error)
func (UnimplementedFairnodeServiceServer) RequestLeague ¶
func (UnimplementedFairnodeServiceServer) RequestOtprn ¶
func (UnimplementedFairnodeServiceServer) RequestVoteResult ¶
func (UnimplementedFairnodeServiceServer) RequestVoteResult(context.Context, *common.ReqVoteResult) (*common.ResVoteResult, error)
func (UnimplementedFairnodeServiceServer) SealConfirm ¶
func (UnimplementedFairnodeServiceServer) SealConfirm(*common.ReqConfirmSeal, FairnodeService_SealConfirmServer) error
type UnimplementedFairnodeSyncServiceServer ¶
type UnimplementedFairnodeSyncServiceServer struct { }
UnimplementedFairnodeSyncServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFairnodeSyncServiceServer) SyncController ¶
func (UnimplementedFairnodeSyncServiceServer) SyncController(*emptypb.Empty, FairnodeSyncService_SyncControllerServer) error
type UnsafeFairnodeServiceServer ¶ added in v0.8.1
type UnsafeFairnodeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFairnodeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FairnodeServiceServer will result in compilation errors.
type UnsafeFairnodeSyncServiceServer ¶ added in v0.8.1
type UnsafeFairnodeSyncServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFairnodeSyncServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FairnodeSyncServiceServer will result in compilation errors.