bit4sat/ws/protocol.go
2019-03-31 22:53:53 +02:00

16 lines
231 B
Go

package ws
// Websocket message types
const (
invoicePaid = iota
)
var messageTypes = map[int]string{
invoicePaid: "invoice-paid",
}
type ProtoMessage struct {
Type string `json:"type"`
Data interface{} `json:"data"`
}