From 4e048d56b9f548985367ef344aa374640eee5f06 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 28 Nov 2017 19:17:59 +0900 Subject: [PATCH] ing --- connection/websocket/fasthttp/servlet_handlers.go | 8 ++++---- gateway/servlet_handler.go | 2 +- gateway/servlet_handlers.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/connection/websocket/fasthttp/servlet_handlers.go b/connection/websocket/fasthttp/servlet_handlers.go index 33958c6..026ffa6 100644 --- a/connection/websocket/fasthttp/servlet_handlers.go +++ b/connection/websocket/fasthttp/servlet_handlers.go @@ -8,10 +8,10 @@ import ( cwf "git.loafle.net/commons_go/websocket_fasthttp" ) -type ServletHandlers struct { +type FastHTTPServletHandlers struct { } -func (sh *ServletHandlers) GetRequest(servletCTX rpc.ServletContext, codec protocol.ServerCodec, conn interface{}) (protocol.ServerRequestCodec, error) { +func (sh *FastHTTPServletHandlers) GetRequest(servletCTX rpc.ServletContext, codec protocol.ServerCodec, conn interface{}) (protocol.ServerRequestCodec, error) { soc := conn.(cwf.Socket) _, r, err := soc.NextReader() @@ -20,7 +20,7 @@ func (sh *ServletHandlers) GetRequest(servletCTX rpc.ServletContext, codec proto return requestCodec, err } -func (sh *ServletHandlers) SendResponse(servletCTX rpc.ServletContext, conn interface{}, requestCodec protocol.ServerRequestCodec, result interface{}, err error) error { +func (sh *FastHTTPServletHandlers) SendResponse(servletCTX rpc.ServletContext, conn interface{}, requestCodec protocol.ServerRequestCodec, result interface{}, err error) error { soc := conn.(cwf.Socket) wc, wErr := soc.NextWriter(websocket.TextMessage) @@ -41,7 +41,7 @@ func (sh *ServletHandlers) SendResponse(servletCTX rpc.ServletContext, conn inte return nil } -func (sh *ServletHandlers) SendNotification(servletCTX rpc.ServletContext, conn interface{}, codec protocol.ServerCodec, method string, args ...interface{}) error { +func (sh *FastHTTPServletHandlers) SendNotification(servletCTX rpc.ServletContext, conn interface{}, codec protocol.ServerCodec, method string, args ...interface{}) error { soc := conn.(cwf.Socket) wc, wErr := soc.NextWriter(websocket.TextMessage) diff --git a/gateway/servlet_handler.go b/gateway/servlet_handler.go index cccb092..4d2034b 100644 --- a/gateway/servlet_handler.go +++ b/gateway/servlet_handler.go @@ -2,6 +2,6 @@ package gateway import "git.loafle.net/commons_go/rpc" -type GatewayServletHandler interface { +type ServletHandler interface { rpc.ServletHandler } diff --git a/gateway/servlet_handlers.go b/gateway/servlet_handlers.go index b365e66..6654cea 100644 --- a/gateway/servlet_handlers.go +++ b/gateway/servlet_handlers.go @@ -4,6 +4,6 @@ import ( "git.loafle.net/commons_go/rpc" ) -type GatewayServletHandlers struct { +type ServletHandlers struct { rpc.ServletHandlers }