notification

package
v0.0.0-...-7bd4979 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MRDataConn

type MRDataConn struct {
	// contains filtered or unexported fields
}

type NotificationServer

type NotificationServer struct {
	// contains filtered or unexported fields
}

func (*NotificationServer) GetNewBlockNotificationChannel

func (ns *NotificationServer) GetNewBlockNotificationChannel() chan []byte

func (*NotificationServer) Start

func (ns *NotificationServer) Start(chain *chain.Chain) (err error)

func (*NotificationServer) Stop

func (ns *NotificationServer) Stop()

type Peer

type Peer struct {
	// contains filtered or unexported fields
}

func (*Peer) Disconnect

func (p *Peer) Disconnect(reason p2p.DiscReason)

func (*Peer) IsNotificationEnabled

func (p *Peer) IsNotificationEnabled() bool

func (*Peer) NotifyNewBlock

func (p *Peer) NotifyNewBlock(headerHash []byte) error

func (*Peer) ReadMsg

func (p *Peer) ReadMsg() (msg *notification.NotificationMessage, err error)

func (*Peer) Send

Jump to

Keyboard shortcuts

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