frp/client/event/event.go

20 lines
301 B
Go
Raw Permalink Normal View History

2018-12-09 22:06:22 +08:00
package event
2018-12-07 17:05:36 +08:00
import (
"errors"
2020-09-23 13:49:14 +08:00
"github.com/fatedier/frp/pkg/msg"
2018-12-07 17:05:36 +08:00
)
2022-08-29 01:02:53 +08:00
var ErrPayloadType = errors.New("error payload type")
2018-12-07 17:05:36 +08:00
type Handler func(payload interface{}) error
2018-12-07 17:05:36 +08:00
type StartProxyPayload struct {
NewProxyMsg *msg.NewProxy
}
type CloseProxyPayload struct {
CloseProxyMsg *msg.CloseProxy
}