improve ss
This commit is contained in:
13
pkg/handler/handler.go
Normal file
13
pkg/handler/handler.go
Normal file
@ -0,0 +1,13 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
|
||||
"github.com/go-gost/gost/pkg/metadata"
|
||||
)
|
||||
|
||||
type Handler interface {
|
||||
Init(metadata.Metadata) error
|
||||
Handle(context.Context, net.Conn)
|
||||
}
|
Reference in New Issue
Block a user