flowmessage.go 369 B

1234567891011121314151617
  1. package flowmsg
  2. import "encoding/json"
  3. // RecvMessage Main message structure
  4. type RecvMessage struct {
  5. OP string `json:"op"`
  6. ID string `json:"id"` // destination sessId
  7. Data json.RawMessage `json:"data"`
  8. }
  9. // SendMessage
  10. type SendMessage struct {
  11. OP string `json:"op"`
  12. ID string `json:"id"`
  13. Data interface{} `json:"data"`
  14. }