mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
refactor project structure
This commit is contained in:
13
interface/tcp/handler.go
Normal file
13
interface/tcp/handler.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package tcp
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
type HandleFunc func(ctx context.Context, conn net.Conn)
|
||||
|
||||
type Handler interface {
|
||||
Handle(ctx context.Context, conn net.Conn)
|
||||
Close() error
|
||||
}
|
Reference in New Issue
Block a user