From f26ca1311b8774393bbf9bda5763430041755bbc Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 14 Nov 2017 16:52:12 +0900 Subject: [PATCH] ing --- subscribe/subscriber_handlers.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 subscribe/subscriber_handlers.go diff --git a/subscribe/subscriber_handlers.go b/subscribe/subscriber_handlers.go new file mode 100644 index 0000000..e028895 --- /dev/null +++ b/subscribe/subscriber_handlers.go @@ -0,0 +1,23 @@ +package subscribe + +import ( + "fmt" + + "git.loafle.net/commons_go/logging" + "git.loafle.net/overflow/overflow_gateway_websocket/servlet" + oos "git.loafle.net/overflow/overflow_subscriber" +) + +type SubscriberHandlers struct { + oos.SubscriberHandlers + + ServletHandler servlet.ServletHandler +} + +func (sh *SubscriberHandlers) Validate() { + sh.SubscriberHandlers.Validate() + + if nil == sh.ServletHandler { + logging.Logger().Panic(fmt.Sprintf("Gateway Websocket: servletHandler must be specified")) + } +}