Documentation ¶
Index ¶
- type Service
- func (s *Service) Cleanup()
- func (s *Service) GetAddresses() ([]node.ConsensusAddress, error)
- func (s *Service) GetChainContext() string
- func (s *Service) GetPeers() []string
- func (s *Service) Name() string
- func (s *Service) Quit() <-chan struct{}
- func (s *Service) Start() error
- func (s *Service) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the seed node service.
func New ¶
func New(dataDir string, identity *identity.Identity, genesisProvider genesis.Provider) (*Service, error)
New creates a new seed node service.
func (*Service) GetAddresses ¶
func (s *Service) GetAddresses() ([]node.ConsensusAddress, error)
GetAddresses returns a list of configured external addresses.
func (*Service) GetChainContext ¶
GetChainContext returns chain context from which network/chain ID was derived.
Click to show internal directories.
Click to hide internal directories.