Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocol *pingProtocol MiniProtocol = protocols.NewMiniProtocol(Protocol) )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClientFor ¶
type FaultDetector ¶
type FaultDetector struct { *protocols.FaultDetectorBase // contains filtered or unexported fields }
func DialNewFaultDetector ¶
func DialNewFaultDetector(endpoint string) (*FaultDetector, error)
func NewFaultDetector ¶
func NewFaultDetector(client protocols.Client, server string) (*FaultDetector, error)
func (*FaultDetector) Check ¶
func (detector *FaultDetector) Check()
func (*FaultDetector) Close ¶
func (detector *FaultDetector) Close() (err error)
func (*FaultDetector) Start ¶
func (detector *FaultDetector) Start()
type PingPacket ¶
type PingPacket struct {
Value int
}
func (*PingPacket) Pong ¶
func (ping *PingPacket) Pong() int
func (*PingPacket) PongValue ¶
func (ping *PingPacket) PongValue() PongPacket
type PongPacket ¶
type PongPacket struct {
Value int
}
func (*PongPacket) Check ¶
func (pong *PongPacket) Check(ping *PingPacket) bool
Click to show internal directories.
Click to hide internal directories.