Documentation
¶
Index ¶
- type Controller
- func (c *Controller) CreateStoreProxy(ctx *httppkg.Context) (any, error)
- func (c *Controller) CreateStoreVisitor(ctx *httppkg.Context) (any, error)
- func (c *Controller) DeleteStoreProxy(ctx *httppkg.Context) (any, error)
- func (c *Controller) DeleteStoreVisitor(ctx *httppkg.Context) (any, error)
- func (c *Controller) GetConfig(ctx *httppkg.Context) (any, error)
- func (c *Controller) GetProxyConfig(ctx *httppkg.Context) (any, error)
- func (c *Controller) GetStoreProxy(ctx *httppkg.Context) (any, error)
- func (c *Controller) GetStoreVisitor(ctx *httppkg.Context) (any, error)
- func (c *Controller) GetVisitorConfig(ctx *httppkg.Context) (any, error)
- func (c *Controller) ListStoreProxies(ctx *httppkg.Context) (any, error)
- func (c *Controller) ListStoreVisitors(ctx *httppkg.Context) (any, error)
- func (c *Controller) PutConfig(ctx *httppkg.Context) (any, error)
- func (c *Controller) Reload(ctx *httppkg.Context) (any, error)
- func (c *Controller) Status(ctx *httppkg.Context) (any, error)
- func (c *Controller) Stop(ctx *httppkg.Context) (any, error)
- func (c *Controller) UpdateStoreProxy(ctx *httppkg.Context) (any, error)
- func (c *Controller) UpdateStoreVisitor(ctx *httppkg.Context) (any, error)
- type ControllerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller handles HTTP API requests for frpc.
func NewController ¶
func NewController(params ControllerParams) *Controller
func (*Controller) CreateStoreProxy ¶
func (c *Controller) CreateStoreProxy(ctx *httppkg.Context) (any, error)
func (*Controller) CreateStoreVisitor ¶
func (c *Controller) CreateStoreVisitor(ctx *httppkg.Context) (any, error)
func (*Controller) DeleteStoreProxy ¶
func (c *Controller) DeleteStoreProxy(ctx *httppkg.Context) (any, error)
func (*Controller) DeleteStoreVisitor ¶
func (c *Controller) DeleteStoreVisitor(ctx *httppkg.Context) (any, error)
func (*Controller) GetConfig ¶
func (c *Controller) GetConfig(ctx *httppkg.Context) (any, error)
GetConfig handles GET /api/config
func (*Controller) GetProxyConfig ¶
func (c *Controller) GetProxyConfig(ctx *httppkg.Context) (any, error)
GetProxyConfig handles GET /api/proxy/{name}/config
func (*Controller) GetStoreProxy ¶
func (c *Controller) GetStoreProxy(ctx *httppkg.Context) (any, error)
func (*Controller) GetStoreVisitor ¶
func (c *Controller) GetStoreVisitor(ctx *httppkg.Context) (any, error)
func (*Controller) GetVisitorConfig ¶
func (c *Controller) GetVisitorConfig(ctx *httppkg.Context) (any, error)
GetVisitorConfig handles GET /api/visitor/{name}/config
func (*Controller) ListStoreProxies ¶
func (c *Controller) ListStoreProxies(ctx *httppkg.Context) (any, error)
func (*Controller) ListStoreVisitors ¶
func (c *Controller) ListStoreVisitors(ctx *httppkg.Context) (any, error)
func (*Controller) PutConfig ¶
func (c *Controller) PutConfig(ctx *httppkg.Context) (any, error)
PutConfig handles PUT /api/config
func (*Controller) Reload ¶
func (c *Controller) Reload(ctx *httppkg.Context) (any, error)
Reload handles GET /api/reload
func (*Controller) Status ¶
func (c *Controller) Status(ctx *httppkg.Context) (any, error)
Status handles GET /api/status
func (*Controller) Stop ¶
func (c *Controller) Stop(ctx *httppkg.Context) (any, error)
Stop handles POST /api/stop
func (*Controller) UpdateStoreProxy ¶
func (c *Controller) UpdateStoreProxy(ctx *httppkg.Context) (any, error)
func (*Controller) UpdateStoreVisitor ¶
func (c *Controller) UpdateStoreVisitor(ctx *httppkg.Context) (any, error)
type ControllerParams ¶
type ControllerParams struct {
ServerAddr string
Manager configmgmt.ConfigManager
}
ControllerParams contains parameters for creating an APIController.
Click to show internal directories.
Click to hide internal directories.