This commit is contained in:
crusader 2017-12-02 12:19:00 +09:00
parent ca25ad0f57
commit cdecdf8307
6 changed files with 24 additions and 24 deletions

View File

@ -5,16 +5,16 @@ import (
"git.loafle.net/commons_go/logging" "git.loafle.net/commons_go/logging"
cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client"
oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe" oocmp "git.loafle.net/overflow/overflow_commons_go/modules/probe"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc"
oopcc "git.loafle.net/overflow/overflow_probes/central/client" oopcc "git.loafle.net/overflow/overflow_probes/central/client"
oops "git.loafle.net/overflow/overflow_probes/service"
) )
func NewSocketBuilder(napService *oopar.NoAuthProbeService) cwfc.SocketBuilder { func NewSocketBuilder(napService *oops.NoAuthProbeService) cwfc.SocketBuilder {
sb := &SocketBuilders{ sb := &SocketBuilders{
napService: napService, napService: napService,
} }
sb.SocketBuilders = oopcc.NewSocketBuilder(oocmn.HTTPEntry_NoAuthProbe) sb.SocketBuilders = oopcc.NewSocketBuilder(oocmp.HTTPEntry_NoAuthProbe)
if nil == sb.SocketBuilders { if nil == sb.SocketBuilders {
return nil return nil
} }
@ -25,7 +25,7 @@ func NewSocketBuilder(napService *oopar.NoAuthProbeService) cwfc.SocketBuilder {
type SocketBuilders struct { type SocketBuilders struct {
*oopcc.SocketBuilders *oopcc.SocketBuilders
napService *oopar.NoAuthProbeService napService *oops.NoAuthProbeService
} }
func (sb *SocketBuilders) SocketHandler() cwfc.SocketHandler { func (sb *SocketBuilders) SocketHandler() cwfc.SocketHandler {

View File

@ -8,13 +8,13 @@ import (
cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client"
ooccn "git.loafle.net/overflow/overflow_commons_go/config/noauthprobe" ooccn "git.loafle.net/overflow/overflow_commons_go/config/noauthprobe"
oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe" oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc" oops "git.loafle.net/overflow/overflow_probes/service"
) )
type SocketHandlers struct { type SocketHandlers struct {
cwfc.SocketHandlers cwfc.SocketHandlers
napService *oopar.NoAuthProbeService napService *oops.NoAuthProbeService
} }
func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) { func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) {
@ -34,7 +34,7 @@ func (sh *SocketHandlers) OnDisconnect(soc cwfc.Socket) {
} }
func newSocketHandler(napService *oopar.NoAuthProbeService) cwfc.SocketHandler { func newSocketHandler(napService *oops.NoAuthProbeService) cwfc.SocketHandler {
return &SocketHandlers{ return &SocketHandlers{
napService: napService, napService: napService,
} }

View File

@ -5,16 +5,16 @@ import (
"git.loafle.net/commons_go/logging" "git.loafle.net/commons_go/logging"
cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client"
oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe" oocmp "git.loafle.net/overflow/overflow_commons_go/modules/probe"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc"
oopcc "git.loafle.net/overflow/overflow_probes/central/client" oopcc "git.loafle.net/overflow/overflow_probes/central/client"
oops "git.loafle.net/overflow/overflow_probes/service"
) )
func NewSocketBuilder(napService *oopar.NoAuthProbeService) cwfc.SocketBuilder { func NewSocketBuilder(napService *oops.NoAuthProbeService) cwfc.SocketBuilder {
sb := &SocketBuilders{ sb := &SocketBuilders{
napService: napService, napService: napService,
} }
sb.SocketBuilders = oopcc.NewSocketBuilder(oocmn.HTTPEntry_NoAuthProbe) sb.SocketBuilders = oopcc.NewSocketBuilder(oocmp.HTTPEntry_NoAuthProbe)
if nil == sb.SocketBuilders { if nil == sb.SocketBuilders {
return nil return nil
} }
@ -25,7 +25,7 @@ func NewSocketBuilder(napService *oopar.NoAuthProbeService) cwfc.SocketBuilder {
type SocketBuilders struct { type SocketBuilders struct {
*oopcc.SocketBuilders *oopcc.SocketBuilders
napService *oopar.NoAuthProbeService napService *oops.NoAuthProbeService
} }
func (sb *SocketBuilders) SocketHandler() cwfc.SocketHandler { func (sb *SocketBuilders) SocketHandler() cwfc.SocketHandler {

View File

@ -8,13 +8,13 @@ import (
cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client"
ooccn "git.loafle.net/overflow/overflow_commons_go/config/noauthprobe" ooccn "git.loafle.net/overflow/overflow_commons_go/config/noauthprobe"
oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe" oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc" oops "git.loafle.net/overflow/overflow_probes/service"
) )
type SocketHandlers struct { type SocketHandlers struct {
cwfc.SocketHandlers cwfc.SocketHandlers
napService *oopar.NoAuthProbeService napService *oops.NoAuthProbeService
} }
func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) { func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) {
@ -34,7 +34,7 @@ func (sh *SocketHandlers) OnDisconnect(soc cwfc.Socket) {
} }
func newSocketHandler(napService *oopar.NoAuthProbeService) cwfc.SocketHandler { func newSocketHandler(napService *oops.NoAuthProbeService) cwfc.SocketHandler {
return &SocketHandlers{ return &SocketHandlers{
napService: napService, napService: napService,
} }

View File

@ -5,16 +5,16 @@ import (
"git.loafle.net/commons_go/logging" "git.loafle.net/commons_go/logging"
cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client"
oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe" oocmp "git.loafle.net/overflow/overflow_commons_go/modules/probe"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc"
oopcc "git.loafle.net/overflow/overflow_probes/central/client" oopcc "git.loafle.net/overflow/overflow_probes/central/client"
oops "git.loafle.net/overflow/overflow_probes/service"
) )
func NewSocketBuilder(napService *oopar.NoAuthProbeService) cwfc.SocketBuilder { func NewSocketBuilder(napService *oops.NoAuthProbeService) cwfc.SocketBuilder {
sb := &SocketBuilders{ sb := &SocketBuilders{
napService: napService, napService: napService,
} }
sb.SocketBuilders = oopcc.NewSocketBuilder(oocmn.HTTPEntry_NoAuthProbe) sb.SocketBuilders = oopcc.NewSocketBuilder(oocmp.HTTPEntry_Probe)
if nil == sb.SocketBuilders { if nil == sb.SocketBuilders {
return nil return nil
} }
@ -25,7 +25,7 @@ func NewSocketBuilder(napService *oopar.NoAuthProbeService) cwfc.SocketBuilder {
type SocketBuilders struct { type SocketBuilders struct {
*oopcc.SocketBuilders *oopcc.SocketBuilders
napService *oopar.NoAuthProbeService napService *oops.NoAuthProbeService
} }
func (sb *SocketBuilders) SocketHandler() cwfc.SocketHandler { func (sb *SocketBuilders) SocketHandler() cwfc.SocketHandler {

View File

@ -8,13 +8,13 @@ import (
cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client"
ooccn "git.loafle.net/overflow/overflow_commons_go/config/noauthprobe" ooccn "git.loafle.net/overflow/overflow_commons_go/config/noauthprobe"
oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe" oocmn "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc" oops "git.loafle.net/overflow/overflow_probes/service"
) )
type SocketHandlers struct { type SocketHandlers struct {
cwfc.SocketHandlers cwfc.SocketHandlers
napService *oopar.NoAuthProbeService napService *oops.NoAuthProbeService
} }
func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) { func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) {
@ -34,7 +34,7 @@ func (sh *SocketHandlers) OnDisconnect(soc cwfc.Socket) {
} }
func newSocketHandler(napService *oopar.NoAuthProbeService) cwfc.SocketHandler { func newSocketHandler(napService *oops.NoAuthProbeService) cwfc.SocketHandler {
return &SocketHandlers{ return &SocketHandlers{
napService: napService, napService: napService,
} }