add some unittests and bug fix

This commit is contained in:
hdt3213
2021-05-02 18:48:44 +08:00
parent 37779717e4
commit 9f3ac88b36
19 changed files with 256 additions and 146 deletions

View File

@@ -7,6 +7,7 @@ import (
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