ing
This commit is contained in:
parent
f762f59aef
commit
f26ca1311b
23
subscribe/subscriber_handlers.go
Normal file
23
subscribe/subscriber_handlers.go
Normal file
|
@ -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"))
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user