service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_TCP     = "tcp"
	TYPE_TLS     = "tls"
	TYPE_HTTP    = "http"
	CONN_CONTROL = uint8(1)
	CONN_SERVER  = uint8(2)
	CONN_CLIENT  = uint8(3)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Local    string
	Parent   string
	CertFile string
	KeyFile  string

	CertBytes []byte
	KeyBytes  []byte

	Cert *certificate.Certificate
}

type ProxyCommand

type ProxyCommand struct {
	command.BaseCommand
}

func (*ProxyCommand) InitCert

func (c *ProxyCommand) InitCert(cfg *Config) error

InitCert 初始化证书

func (*ProxyCommand) InitVars

func (c *ProxyCommand) InitVars(cCmd *cobra.Command, cfg *Config)

InitVars 初始化配置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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