http

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 15 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) 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