Files
redis-go/interface/tcp/handler.go
2021-05-02 14:54:42 +08:00

14 lines
187 B
Go

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
}