fairnode

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFairnodeServiceServer

func RegisterFairnodeServiceServer(s *grpc.Server, srv FairnodeServiceServer)

func RegisterFairnodeSyncServiceServer

func RegisterFairnodeSyncServiceServer(s *grpc.Server, srv FairnodeSyncServiceServer)

Types

type FairnodeServiceClient

type FairnodeServiceClient interface {
	HeartBeat(ctx context.Context, in *common.HeartBeat, opts ...grpc.CallOption) (*empty.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) (*empty.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) (*empty.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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFairnodeServiceClient

func NewFairnodeServiceClient(cc *grpc.ClientConn) FairnodeServiceClient

type FairnodeServiceServer

FairnodeServiceServer is the server API for FairnodeService service.

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 *empty.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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFairnodeSyncServiceClient

func NewFairnodeSyncServiceClient(cc *grpc.ClientConn) FairnodeSyncServiceClient

type FairnodeSyncServiceServer

type FairnodeSyncServiceServer interface {
	SyncController(*empty.Empty, FairnodeSyncService_SyncControllerServer) error
}

FairnodeSyncServiceServer is the server API for FairnodeSyncService service.

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 can 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 can be embedded to have forward compatible implementations.

func (*UnimplementedFairnodeSyncServiceServer) SyncController

Jump to

Keyboard shortcuts

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