fairnode

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

type FairnodeServiceServer

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.

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) HeartBeat

func (UnimplementedFairnodeServiceServer) ProcessController

func (UnimplementedFairnodeServiceServer) RequestFairnodeSign

func (UnimplementedFairnodeServiceServer) RequestLeague

func (UnimplementedFairnodeServiceServer) RequestOtprn

func (UnimplementedFairnodeServiceServer) RequestVoteResult

func (UnimplementedFairnodeServiceServer) SealConfirm

func (UnimplementedFairnodeServiceServer) SendBlock

func (UnimplementedFairnodeServiceServer) Vote

type UnimplementedFairnodeSyncServiceServer

type UnimplementedFairnodeSyncServiceServer struct {
}

UnimplementedFairnodeSyncServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedFairnodeSyncServiceServer) SyncController

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.

Jump to

Keyboard shortcuts

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