devproxycmd

package
v2.0.0-beta.17 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallSystemIntegration

func InstallSystemIntegration() error

InstallSystemIntegration 安装系统集成

func New

func New(di *dix.Dix) *redant.Command

func ShowRoutes

func ShowRoutes() error

ShowRoutes 显示当前路由

func StartDevProxy

func StartDevProxy(ctx context.Context) error

StartDevProxy 启动开发代理

func UninstallSystemIntegration

func UninstallSystemIntegration() error

UninstallSystemIntegration 卸载系统集成

Types

type Config

type Config struct {
	DNS struct {
		Port int `json:"port" yaml:"port"`
	} `json:"dns" yaml:"dns"`
	HTTP struct {
		Port int `json:"port" yaml:"port"`
	} `json:"http" yaml:"http"`
	Routes []Route `json:"routes" yaml:"routes"`
}

Config 配置结构

type Route

type Route struct {
	Pattern string `json:"pattern" yaml:"pattern"`
	Target  string `json:"target" yaml:"target"`
	Path    string `json:"path" yaml:"path"`
}

Route 路由配置

Jump to

Keyboard shortcuts

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