Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct { // NodeURI can be used to set the enode:// connection string that // the pool should advertise to clients. Normally, the pool will // automatically deduce this string from the connection IP and nodeID, but // we can provide an override if there is a non-standard port or if the // node runs on a different IP from the vipnode agent. NodeURI string // contains filtered or unexported fields }
Host represents a single vipnode host.
func (*Host) Disconnect ¶ added in v0.2.5
Disconnect a client from this host and remove from whitelist.
func (*Host) Start ¶
Start registers the host on the given pool and starts sending peer updates every store.KeepaliveInterval. It returns after successfully registering with the pool.
func (*Host) Stop ¶
func (h *Host) Stop()
Stop will terminate the update peers loop, which will cause Start to return.
Click to show internal directories.
Click to hide internal directories.