[client] Remove redundant function parameters (#3016)

This commit is contained in:
chenjiayao
2022-07-14 15:31:32 +08:00
committed by GitHub
parent 6f2571980c
commit 1bc899ec12
3 changed files with 4 additions and 11 deletions

View File

@@ -6,18 +6,11 @@ import (
"github.com/fatedier/frp/pkg/msg"
)
type Type int
const (
EvStartProxy Type = iota
EvCloseProxy
)
var (
ErrPayloadType = errors.New("error payload type")
)
type Handler func(evType Type, payload interface{}) error
type Handler func(payload interface{}) error
type StartProxyPayload struct {
NewProxyMsg *msg.NewProxy