clash

package
v0.0.0-...-6c6da95 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRawConfig

func ApplyRawConfig(opt *ClashStartOptions)

func IsRunning

func IsRunning() bool

func Start

func Start(opt *ClashStartOptions)

func Stop

func Stop()

Types

type ClashStartOptions

type ClashStartOptions struct {
	// HomeDir Clash config home directory
	HomeDir string
	// SocksListener Clash listener address and port
	SocksListener string
	// TrojanProxyServer Trojan proxy listening address and port
	ProxyServer        string
	ProxyType          string
	ProxyPassword      string
	Proxycipher        string
	Proxyobfs          string
	Proxyobfsparam     string
	Proxyorigin        string
	Proxyprotocol      string
	Proxyprotocolparam string
	// TrojanProxyServerUdpEnabled Whether UDP is enabled for Trojan Server
	ProxyServerUdpEnabled bool
}

Jump to

Keyboard shortcuts

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