This commit is contained in:
2025-06-20 17:00:56 +08:00
parent e17648cb60
commit 1b55403cd6
13 changed files with 1266 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package codec
import "github.com/panjf2000/gnet/v2"
type SocketCodec interface {
Encode([]byte) ([]byte, error)
Decode(gnet.Conn) ([]byte, error)
}