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