diff --git a/subscribe_message.go b/subscribe_message.go new file mode 100644 index 0000000..cb8b6e8 --- /dev/null +++ b/subscribe_message.go @@ -0,0 +1,11 @@ +package overflow_subscriber + +type SubscribeMessage struct { + Targets []string `json:"targets"` + Message SubscribeMessageBody `json:"message"` +} + +type SubscribeMessageBody struct { + Method string `json:"method"` + Params interface{} `json:"params,omitempty"` +}