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.
bit4sat/ws/protocol.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"`
}