From aaa007939f2f49f358de9f9d60cb932077677dd1 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Mon, 25 Dec 2023 17:46:42 +0800 Subject: [PATCH] =?UTF-8?q?other:=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=20server.ConnReadonly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/conn_readonly.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 server/conn_readonly.go diff --git a/server/conn_readonly.go b/server/conn_readonly.go deleted file mode 100644 index 2f2d003..0000000 --- a/server/conn_readonly.go +++ /dev/null @@ -1,19 +0,0 @@ -package server - -import ( - "net" -) - -// ConnReadonly 连接只读接口 -type ConnReadonly interface { - // RemoteAddr 获取远程地址 - RemoteAddr() net.Addr - // GetID 获取连接 ID - GetID() string - // GetIP 获取连接 IP - GetIP() string - // GetData 获取连接数据 - GetData(key any) any - // IsWebsocket 是否是 websocket 连接 - IsWebsocket() bool -}