initial commit
This commit is contained in:
18
handler/handler.go
Normal file
18
handler/handler.go
Normal file
@ -0,0 +1,18 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
|
||||
"github.com/go-gost/core/chain"
|
||||
"github.com/go-gost/core/metadata"
|
||||
)
|
||||
|
||||
type Handler interface {
|
||||
Init(metadata.Metadata) error
|
||||
Handle(context.Context, net.Conn, ...HandleOption) error
|
||||
}
|
||||
|
||||
type Forwarder interface {
|
||||
Forward(*chain.NodeGroup)
|
||||
}
|
Reference in New Issue
Block a user