package daemonconn const ( MessageTypeEchoRequest = iota MessageTypeEchoResponse MessageTypeEchoUpdate ) type EchoRequest struct { EchoByte byte UpdatesCount byte } func (EchoRequest) TypeID() uint32 { return MessageTypeEchoRequest } type EchoResponse struct { EchoByte byte } func (EchoResponse) TypeID() uint32 { return MessageTypeEchoResponse } // EchoUpdate should be sent from the side, which received EchoRequest // UpdatesCount times (which is specified in the EchoRequest message) type EchoUpdate struct { EchoByte byte } func (EchoUpdate) TypeID() uint32 { return MessageTypeEchoUpdate }