mirror of
https://github.com/HDT3213/godis.git
synced 2025-09-26 21:01:17 +08:00
17 lines
292 B
Go
17 lines
292 B
Go
package tcp
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
|
|
)
|
|
|
|
// HandleFunc represents application handler function
|
|
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
|
|
}
|