sphere

package
v0.0.0-...-e66b27f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RetryNum          = 1000
	ReconnectWaitTime = time.Second * 15
	Timeout           = time.Second * 30
)

Functions

This section is empty.

Types

type GRPCService

type GRPCService struct {
	// contains filtered or unexported fields
}

func NewGRPCService

func NewGRPCService() *GRPCService

func (*GRPCService) ClearShareHistory

func (s *GRPCService) ClearShareHistory(height int32) (bool, error)

func (*GRPCService) GetLatestStratumJob

func (s *GRPCService) GetLatestStratumJob() (*service.StratumJob, error)

func (*GRPCService) Init

func (s *GRPCService) Init() error

func (*GRPCService) Register

func (s *GRPCService) Register(config *service.StratumConfig, sysInfo *service.SysInfo) error

func (*GRPCService) SetConfig

func (s *GRPCService) SetConfig(config *conf.GRPCConfig) *GRPCService

func (*GRPCService) SubmitShare

func (s *GRPCService) SubmitShare(share *service.StratumShare, difficulty uint64) (service.ShareResult, error)

func (*GRPCService) Subscribe

func (s *GRPCService) Subscribe(ctx context.Context, handler service.SubscribeHandler)

func (*GRPCService) UnRegister

func (s *GRPCService) UnRegister() (bool, error)

Jump to

Keyboard shortcuts

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