Documentation
¶
Overview ¶
Package agent-tcp implements a TCP based agent to participate in consensus
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPPeer ¶
type TCPPeer struct { sync.Mutex // mutex for all fields // contains filtered or unexported fields }
TCPPeer contains information related to a tcp connection
func NewTCPPeer ¶
NewTCPPeer creates a consensus peer based on net.Conn and and async-io(gaio) watcher for sending
func (*TCPPeer) GetPublicKey ¶
GetPublicKey returns peer's public key as identity
func (*TCPPeer) RemoteAddr ¶
RemoteAddr should return peer's address as identity
Click to show internal directories.
Click to hide internal directories.