type ControlPing struct{}
-func (*ControlPing) GetMessageName() string {
- return "control_ping"
-}
-func (*ControlPing) GetCrcString() string {
- return "51077d14"
-}
-func (*ControlPing) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
+func (*ControlPing) GetMessageName() string { return "control_ping" }
+func (*ControlPing) GetCrcString() string { return "51077d14" }
+func (*ControlPing) GetMessageType() api.MessageType { return api.RequestMessage }
type ControlPingReply struct {
Retval int32
VpePID uint32
}
-func (*ControlPingReply) GetMessageName() string {
- return "control_ping_reply"
-}
-func (*ControlPingReply) GetCrcString() string {
- return "f6b0b8ca"
-}
-func (*ControlPingReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
+func (*ControlPingReply) GetMessageName() string { return "control_ping_reply" }
+func (*ControlPingReply) GetCrcString() string { return "f6b0b8ca" }
+func (*ControlPingReply) GetMessageType() api.MessageType { return api.ReplyMessage }
func init() {
api.RegisterMessage((*ControlPing)(nil), "ControlPing")