pmap

package
v0.9.1-pretest Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MapQuery p2p.SubProtocol = 0x0100 + iota
	MapResponse
)

subprotocol for polaris

View Source
const (
	DefaultMaxLimit = 500
)

Variables

View Source
var (
	// 89.15 is floor of declination of Polaris
	MainnetMapServer = []string{
		"/dns/polaris.aergo.io/tcp/8915/p2p/16Uiu2HAkvJTHFuJXxr15rFEHsJWnyn1QvGatW2E9ED9Mvy4HWjVF",
	}

	// 89.16 is ceiling of declination of Polaris
	TestnetMapServer = []string{
		"/dns/polaris.aergo.io/tcp/8916/p2p/16Uiu2HAkvJTHFuJXxr15rFEHsJWnyn1QvGatW2E9ED9Mvy4HWjVF",
	}
)

Functions

This section is empty.

Types

type PeerMapService

type PeerMapService struct {
	*component.BaseComponent

	ChainID    []byte
	PrivateNet bool
	// contains filtered or unexported fields
}

PeerMapService is

func NewMapService

func NewMapService(cfg *config.P2PConfig, ntc p2p.NTContainer, listen bool) *PeerMapService

func NewMapServiceCli

func NewMapServiceCli(cfg *config.P2PConfig, ntc p2p.NTContainer) *PeerMapService

func (*PeerMapService) AfterStart

func (pms *PeerMapService) AfterStart()

func (*PeerMapService) BeforeStart

func (pms *PeerMapService) BeforeStart()

func (*PeerMapService) BeforeStop

func (pms *PeerMapService) BeforeStop()

func (*PeerMapService) Receive

func (pms *PeerMapService) Receive(context actor.Context)

func (*PeerMapService) Statistics

func (pms *PeerMapService) Statistics() *map[string]interface{}

Jump to

Keyboard shortcuts

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