1
This commit is contained in:
13
common/socket/codec/SocketCodec.go
Normal file
13
common/socket/codec/SocketCodec.go
Normal 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)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user