http

package
v0.70.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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) APIV2ClientDetail added in v0.70.0

func (c *Controller) APIV2ClientDetail(ctx *httppkg.Context) (any, error)

/api/v2/clients/{key}

func (*Controller) APIV2ClientList added in v0.70.0

func (c *Controller) APIV2ClientList(ctx *httppkg.Context) (any, error)

/api/v2/clients

func (*Controller) APIV2ProxyDetail added in v0.70.0

func (c *Controller) APIV2ProxyDetail(ctx *httppkg.Context) (any, error)

/api/v2/proxies/{name}

func (*Controller) APIV2ProxyList added in v0.70.0

func (c *Controller) APIV2ProxyList(ctx *httppkg.Context) (any, error)

/api/v2/proxies

func (*Controller) APIV2ProxyTraffic added in v0.70.0

func (c *Controller) APIV2ProxyTraffic(ctx *httppkg.Context) (any, error)

/api/v2/proxies/{name}/traffic

func (*Controller) APIV2SystemInfo added in v0.70.0

func (c *Controller) APIV2SystemInfo(ctx *httppkg.Context) (any, error)

/api/v2/system/info

func (*Controller) APIV2SystemPrune added in v0.70.0

func (c *Controller) APIV2SystemPrune(ctx *httppkg.Context) (any, error)

/api/v2/system/prune

func (*Controller) APIV2UserList added in v0.70.0

func (c *Controller) APIV2UserList(ctx *httppkg.Context) (any, error)

/api/v2/users

func (*Controller) DeleteProxies

func (c *Controller) DeleteProxies(ctx *httppkg.Context) (any, error)

DELETE /api/proxies?status=offline

type ProxyManager

type ProxyManager interface {
	GetByName(name string) (proxy.Proxy, bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL