16 lines
231 B
Go
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"`
|
|
}
|