yanic/database/socket/message.go

13 lines
260 B
Go
Raw Permalink Normal View History

2017-05-29 19:33:51 +00:00
package socket
type Message struct {
Event string `json:"event"`
Body interface{} `json:"body,omitempty"`
}
const (
MessageEventInsertNode = "insert_node"
MessageEventInsertGlobals = "insert_globals"
MessageEventPruneNodes = "prune_nodes"
)