Documentation
¶
Index ¶
- type Controller
- func (c *Controller) APIClientDetail(ctx *httppkg.Context) (any, error)
- func (c *Controller) APIClientList(ctx *httppkg.Context) (any, error)
- func (c *Controller) APIProxyByName(ctx *httppkg.Context) (any, error)
- func (c *Controller) APIProxyByType(ctx *httppkg.Context) (any, error)
- func (c *Controller) APIProxyByTypeAndName(ctx *httppkg.Context) (any, error)
- func (c *Controller) APIProxyTraffic(ctx *httppkg.Context) (any, error)
- func (c *Controller) APIServerInfo(ctx *httppkg.Context) (any, error)
- func (c *Controller) DeleteProxies(ctx *httppkg.Context) (any, error)
- type ProxyManager
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
}
func NewController ¶
func NewController( serverCfg *v1.ServerConfig, clientRegistry *registry.ClientRegistry, pxyManager ProxyManager, ) *Controller
func (*Controller) APIClientDetail ¶
func (c *Controller) APIClientDetail(ctx *httppkg.Context) (any, error)
/api/clients/{key}
func (*Controller) APIClientList ¶
func (c *Controller) APIClientList(ctx *httppkg.Context) (any, error)
/api/clients
func (*Controller) APIProxyByName ¶
func (c *Controller) APIProxyByName(ctx *httppkg.Context) (any, error)
/api/proxies/:name
func (*Controller) APIProxyByType ¶
func (c *Controller) APIProxyByType(ctx *httppkg.Context) (any, error)
/api/proxy/:type
func (*Controller) APIProxyByTypeAndName ¶
func (c *Controller) APIProxyByTypeAndName(ctx *httppkg.Context) (any, error)
/api/proxy/:type/:name
func (*Controller) APIProxyTraffic ¶
func (c *Controller) APIProxyTraffic(ctx *httppkg.Context) (any, error)
/api/traffic/:name
func (*Controller) APIServerInfo ¶
func (c *Controller) APIServerInfo(ctx *httppkg.Context) (any, error)
/api/serverinfo
func (*Controller) DeleteProxies ¶
func (c *Controller) DeleteProxies(ctx *httppkg.Context) (any, error)
DELETE /api/proxies?status=offline
Click to show internal directories.
Click to hide internal directories.