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.
|
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"`
|
|
}
|