From 20ad490e27673bb1b4ec5e6c1695b6f4b84b29c8 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 27 Sep 2017 16:35:13 +0900 Subject: [PATCH] SubscribeMessage have been added --- subscribe_message.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 subscribe_message.go 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"` +}