mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
15 lines
237 B
Go
15 lines
237 B
Go
package tcp
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
type HandleFunc func(ctx context.Context, conn net.Conn)
|
|
|
|
// Handler represents application server over tcp
|
|
type Handler interface {
|
|
Handle(ctx context.Context, conn net.Conn)
|
|
Close() error
|
|
}
|