mirror of
https://github.com/fatedier/frp.git
synced 2024-12-01 07:45:07 +08:00
22 lines
306 B
Go
22 lines
306 B
Go
package event
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/fatedier/frp/pkg/msg"
|
|
)
|
|
|
|
var (
|
|
ErrPayloadType = errors.New("error payload type")
|
|
)
|
|
|
|
type Handler func(payload interface{}) error
|
|
|
|
type StartProxyPayload struct {
|
|
NewProxyMsg *msg.NewProxy
|
|
}
|
|
|
|
type CloseProxyPayload struct {
|
|
CloseProxyMsg *msg.CloseProxy
|
|
}
|