frp/client/event/event.go

20 lines
301 B
Go
Raw Normal View History

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