package
1.0.0
Repository: https://github.com/fractalplatform/fractal.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AdaptorRegister register P2P interface to Router.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetDDosLimit get messagetype req limit per second.
GetStationByName retrun Station by Station's name.
GetTypeByCode return Type by typecode.
No description provided by the author
No description provided by the author
New returns an initialized Router instance.
No description provided by the author
No description provided by the author
No description provided by the author
ReplyEvent is equivalent to `SendTo(e.To, e.From, typecode, data)`.
Reset ntended for testing。.
No description provided by the author
SendEvent send event.
SendEvents .
SendTo is equivalent to SendEvent(&Event{From: from, To: to, Type: typecode, Data: data}).
StationRegister register 'Station' to Router.
StationUnregister unregister 'Station'.
Subscribe .
No description provided by the author
No description provided by the author

# Constants

1024 when blockchain insert or miner mined new block.
1026 emit when remote peer disconnected.
1027 emit if needed to let remote peer disconnect.
Type enumerator.
1030 emit when new block was mined.
1025 emit when remote peer incoming but needed to check chainID and genesis block.
1028 emit when remote peer had same chain ID and genesis block.
1031 emit when new transactions needed to broadcast.
1029 add peer to blacklist.
9 BlockBodies response.
10 BlockHash response.
8 BlockHeader response.
Type enumerator.
7 BlockBodies request.
5 BlockHash request.
6 BlockHeader request.
3 Status request.
11 NewBlockHash notify.
0.
1.
2.
4 Status response.
12 TxMsg notify.

# Structs

No description provided by the author
No description provided by the author
Event is including normal event and p2p event.
Feed implements one-to-many subscriptions where the carrier of events is a channel.
No description provided by the author
No description provided by the author
Router Router all events.

# Interfaces

ProtoAdaptor used to send out event.
No description provided by the author
Subscription represents a stream of events.