From 942a854fe1e6b84165b9d78988307e789eab34e5 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 28 Nov 2017 19:20:52 +0900 Subject: [PATCH] ing --- connection/websocket/fasthttp/servlet_handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connection/websocket/fasthttp/servlet_handlers.go b/connection/websocket/fasthttp/servlet_handlers.go index 026ffa6..33958c6 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 FastHTTPServletHandlers struct { +type ServletHandlers struct { } -func (sh *FastHTTPServletHandlers) GetRequest(servletCTX rpc.ServletContext, codec protocol.ServerCodec, conn interface{}) (protocol.ServerRequestCodec, error) { +func (sh *ServletHandlers) 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 *FastHTTPServletHandlers) GetRequest(servletCTX rpc.ServletContext, cod return requestCodec, err } -func (sh *FastHTTPServletHandlers) SendResponse(servletCTX rpc.ServletContext, conn interface{}, requestCodec protocol.ServerRequestCodec, result interface{}, err error) error { +func (sh *ServletHandlers) 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 *FastHTTPServletHandlers) SendResponse(servletCTX rpc.ServletContext, c return nil } -func (sh *FastHTTPServletHandlers) SendNotification(servletCTX rpc.ServletContext, conn interface{}, codec protocol.ServerCodec, method string, args ...interface{}) error { +func (sh *ServletHandlers) SendNotification(servletCTX rpc.ServletContext, conn interface{}, codec protocol.ServerCodec, method string, args ...interface{}) error { soc := conn.(cwf.Socket) wc, wErr := soc.NextWriter(websocket.TextMessage)