freifunkmanager/websocket/msg.go

14 lines
256 B
Go
Raw Normal View History

2017-05-08 19:13:29 +02:00
package websocket
import "github.com/FreifunkBremen/freifunkmanager/runtime"
type Message struct {
Type string `json:"type"`
Node *runtime.Node `json:"node"`
2017-05-08 19:13:29 +02:00
}
const (
MessageTypeUpdateNode = "to-update"
MessageTypeCurrentNode = "current"
2017-05-08 19:13:29 +02:00
)