goploy/ws/MonitorMessage.go
2020-09-11 15:09:38 +08:00

17 lines
331 B
Go

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
}