cmd

package
v0.0.0-...-099495b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Service = cli.Command{
	Name:        "service",
	Usage:       "This command starts services",
	Description: `Start Http Proxy services`,
	Action:      RunService,
	Flags: []cli.Flag{
		stringFlag("port, p", "localhost:1097", "Custom Configuration Port"),
		stringFlag("websocket, w", "", "Custom Configuration WebSocket"),
		stringFlag("username, u", "", "Custom Configuration Username"),
		stringFlag("password, m", "", "Custom Configuration Password"),
	},
}

Functions

func GetHttpData

func GetHttpData(req *http.Request) (*http.Response, []byte, error)

for server debug

func PostHttpData

func PostHttpData(req *http.Request) (*http.Response, []byte, error)

func RunService

func RunService(c *cli.Context) error

func RunSock5

func RunSock5(port int) error

Types

type SendInfo

type SendInfo struct {
	Link        string `json:"link"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	RequestTime string `json:"request_time"`
}

Jump to

Keyboard shortcuts

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