miner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicHubDiscover   = "hubDiscover"
	TopicMinerDiscover = "minerDiscover"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HubInfo added in v0.3.0

type HubInfo struct {
	Address   string
	PublicKey *ecdsa.PublicKey
}

type Server

type Server struct {
	PrivateKey *ecdsa.PrivateKey
	Frd        *fusrodah.Fusrodah
	Hub        *HubInfo
}

func NewServer

func NewServer(prv *ecdsa.PrivateKey) (srv *Server, err error)

func (*Server) GetHub added in v0.3.0

func (srv *Server) GetHub() *HubInfo

func (*Server) Serve

func (srv *Server) Serve()

func (*Server) Start

func (srv *Server) Start() (err error)

func (*Server) Stop

func (srv *Server) Stop() (err error)

Jump to

Keyboard shortcuts

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