types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelfInitiatedConnection = P2PInitiator(iota + 1)
	PeerInitiatedConnection
)

Specifies who was the initiating party for a connection. If the remote peer dialed the local server, the value is PeerInitiatedConnection If the remote peer was dialed by the local client, the value is SelfInitiatedConnection

View Source
const (
	P2PProtocol = Protocol(iota + 1)
	DiscProtocol
	Bootnode
)

These types designate the protocol a dialer is asking to bind against. If this value is P2PProtocol, a peer to peer protocol is being initiated. if this value is DiscProtocol, a discovery protocol is being initiated. If this value is Bootnode, a bootnode protocol is being initiated.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainIdentifier

type ChainIdentifier uint32

ChainIdentifier uniquely represents the chain that a client is interested in. No two peers should have a different chain identifier and be connected.

type P2PInitiator

type P2PInitiator uint8

P2PInitiator specifies who was the initiating party. If the remote peer dialed the local server, the value is PeerInitiatedConnection If the remote peer was dialed by the local client, the value is SelfInitiatedConnection

type ProtoVersion

type ProtoVersion uint32

ProtoVersion is a custom type used to store protocol version

type Protocol

type Protocol uint32

Protocol specifies if this is a P2P or a discovery connection.

Jump to

Keyboard shortcuts

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