goploy/ws/MonitorMessage.go

17 lines
331 B
Go
Raw Normal View History

2020-09-11 15:09:38 +08:00
package ws
// ProjectMessage is publish project message struct
type MonitorMessage struct {
MonitorID int64 `json:"monitorId"`
State uint8 `json:"state"`
ErrorContent string `json:"errorContent"`
}
const (
MonitorTurnOff = 0
)
func (projectMessage MonitorMessage) canSendTo(client *Client) error {
return nil
}