package dttype import ( "github.com/kubeedge/beehive/pkg/core/model" ) // MsgSubPub the struct of message for subscribe or publish type MsgSubPub struct { Action string `json:"action"` Payload string `json:"payload"` Qos int `json:"qos"` } // DTMessage the struct of message for communicating between cloud and edge type DTMessage struct { Msg *model.Message Identity string Action string Type string } // GetDetailNode the info existed in req body type GetDetailNode struct { EventType string `json:"event_type,omitempty"` EventID string `json:"event_id,omitempty"` GroupID string `json:"group_id,omitempty"` Operation string `json:"operation,omitempty"` TimeStamp int64 `json:"timestamp,omitempty"` }