event.go 301 B

12345678910111213141516171819
  1. package event
  2. import (
  3. "errors"
  4. "github.com/fatedier/frp/pkg/msg"
  5. )
  6. var ErrPayloadType = errors.New("error payload type")
  7. type Handler func(payload interface{}) error
  8. type StartProxyPayload struct {
  9. NewProxyMsg *msg.NewProxy
  10. }
  11. type CloseProxyPayload struct {
  12. CloseProxyMsg *msg.CloseProxy
  13. }