Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + var ErrMissingMinerID = errors.New("the miner's peer ID should be configured") + var ErrNotHost = errors.New("connected service is not a host") + var ErrNotKadDHT = errors.New("connected service is not a kaddht") + var ErrNotPubSub = errors.New("connected service is not a pubsub") + var ErrUnavailable = errors.New("the service is not available") + func GetGenesisBlock() (*pb.Block, error) + type Config struct + BlockDifficulty int + DbPath string + GenesisBlock string + Host string + KadDHT string + MaxTxPerBlock int + MinerID string + MinerReward int + PubSub string + Version int + func (c *Config) GetGenesisBlock() (*pb.Block, error) + func (c *Config) GetMinerID() (peer.ID, error) + type Host = ihost.Host + type Service struct + func (s *Service) AddToGRPCServer(gs *grpc.Server) + func (s *Service) Config() interface{} + func (s *Service) Desc() string + func (s *Service) Expose() interface{} + func (s *Service) ID() string + func (s *Service) Name() string + func (s *Service) Needs() map[string]struct{} + func (s *Service) Plug(exposed map[string]interface{}) error + func (s *Service) Run(ctx context.Context, running, stopping func()) error + func (s *Service) SetConfig(config interface{}) error