Documentation ¶
Index ¶
Constants ¶
const ( // SeeleProtoName protoName of Seele service SeeleProtoName = "seele" // SeeleVersion Version number of Seele protocol SeeleVersion uint = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SeeleProtocol ¶
SeeleProtocol service implementation of seele
func NewSeeleProtocol ¶
func NewSeeleProtocol(networkID uint64, log *log.SeeleLog) (s *SeeleProtocol, err error)
NewSeeleService create SeeleProtocol
func (SeeleProtocol) GetBaseProtocol ¶
func (p SeeleProtocol) GetBaseProtocol() (baseProto *p2p.Protocol)
GetBaseProtocol implements p2p.Protocol
func (*SeeleProtocol) Run ¶
func (p *SeeleProtocol) Run()
Run implements p2p.Protocol, called in p2p.Server.Start function
func (SeeleProtocol) Stop ¶
func (p SeeleProtocol) Stop()
Stop stop protocol, called when seeleService quits.
type SeeleService ¶
type SeeleService struct {
// contains filtered or unexported fields
}
SeeleService implements full node service.
func NewSeeleService ¶
func NewSeeleService(networkID uint64, log *log.SeeleLog) (s *SeeleService, err error)
NewSeeleService create SeeleService
func (*SeeleService) APIs ¶
func (s *SeeleService) APIs() (apis []rpc.API)
APIs implements node.Service, returning the collection of RPC services the seele package offers.
func (*SeeleService) Protocols ¶
func (s *SeeleService) Protocols() (protos []p2p.ProtocolInterface)
Protocols implements node.Service, returning all the currently configured network protocols to start.
func (*SeeleService) Start ¶
func (s *SeeleService) Start(srvr *p2p.Server) error
Start implements node.Service, starting goroutines needed by SeeleService.
func (*SeeleService) Stop ¶
func (s *SeeleService) Stop() error
Stop implements node.Service, terminating all internal goroutines.