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: 13 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
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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