Documentation
¶
Index ¶
Constants ¶
View Source
const (
ClientName = "mithril"
)
View Source
const (
DefaultBindAddr = "0.0.0.0:0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.3.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Identity ¶ added in v0.3.0
func (c *Client) Identity() ed25519.PrivateKey
func (*Client) RepairPeers ¶ added in v0.3.0
func (c *Client) RepairPeers() []RepairPeer
func (*Client) ShredVersion ¶ added in v0.3.0
type ContactInfo ¶
type ContactInfo struct {
Pubkey Pubkey
Wallclock uint64
Outset uint64
ShredVer uint16
Version Version
Addrs []net.IP
Sockets []SocketEntry
GossipAddr *net.UDPAddr
ServeRepairAddr *net.UDPAddr
TVUAddr *net.UDPAddr
Extensions [][]byte
}
func NewContactInfo ¶ added in v0.3.0
func (*ContactInfo) CloneWithWallclock ¶ added in v0.3.0
func (c *ContactInfo) CloneWithWallclock(wallclock uint64) *ContactInfo
type CrdsValue ¶
type CrdsValue struct {
Signature Signature
ContactInfo *ContactInfo
Data []byte
}
type EchoResponse ¶ added in v0.3.0
func QueryEntrypoint ¶ added in v0.3.0
type RepairPeer ¶ added in v0.3.0
type SocketEntry ¶ added in v0.3.0
type Stats ¶ added in v0.3.0
type Stats struct {
RxPackets uint64
TxPackets uint64
RxDecodeErrors uint64
TxErrors uint64
RxPings uint64
RxPongs uint64
RxContacts uint64
AcceptedContacts uint64
RxPullRequests uint64
TxPushMessages uint64
TxPingMessages uint64
TxPongMessages uint64
TxPullResponses uint64
LastRxUnix int64
LastTxUnix int64
Peers int
RepairPeers int
}
Click to show internal directories.
Click to hide internal directories.