You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
231 B
Go
16 lines
231 B
Go
5 years ago
|
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"`
|
||
|
}
|