seele

package
v0.0.0-...-ee99c87 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

type SeeleProtocol struct {
	p2p.Protocol
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

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