2017-09-27 07:35:13 +00:00
|
|
|
package overflow_subscriber
|
|
|
|
|
2017-09-27 08:21:34 +00:00
|
|
|
import "encoding/json"
|
|
|
|
|
2017-09-27 07:35:13 +00:00
|
|
|
type SubscribeMessage struct {
|
2017-09-27 08:30:32 +00:00
|
|
|
Targets []string `json:"targets"`
|
|
|
|
MessageRaw *json.RawMessage `json:"message"`
|
|
|
|
Message []byte
|
2017-09-27 07:35:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SubscribeMessageBody struct {
|
2017-12-09 07:33:48 +00:00
|
|
|
Version string `json:"jsonrpc"`
|
|
|
|
Method string `json:"method"`
|
|
|
|
Params interface{} `json:"params,omitempty"`
|
2017-09-27 07:35:13 +00:00
|
|
|
}
|