Documentation ¶
Overview ¶
Package protocol defines types for the clock protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtocolID = protocol.ID("/indigo/node/clock/v1.0.0")
ProtocolID is the protocol ID of the protocol.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
Clock implements the clock protocol.
func (*Clock) ProtocolID ¶
ProtocolID returns this protocol ID
func (*Clock) RemoteTime ¶
RemoteTime asks a peer for its time.
func (*Clock) StreamHandler ¶
StreamHandler handles incoming messages from a peer.
Click to show internal directories.
Click to hide internal directories.