Documentation ¶
Index ¶
- Constants
- Variables
- type IShell
- func (that *IShell) InitKtrl()
- func (that *IShell) PingServer() (ok bool)
- func (that *IShell) PingVerifier() (ok bool)
- func (that *IShell) Restart(ctx *ktrl.KtrlContext, optionStr ...string)
- func (that *IShell) SetRunner(runner *Runner)
- func (that *IShell) Start()
- func (that *IShell) StartServer()
- func (that *IShell) StartShell()
- type Keeper
- type Runner
- func (that *Runner) Current() string
- func (that *Runner) DoesGeoInfoFileExist() bool
- func (that *Runner) DownloadGeoInfo()
- func (that *Runner) GetArgsFromHistory() (args []string)
- func (that *Runner) GetKeeper() *Keeper
- func (that *Runner) GetKeeperStarter() *exec.Cmd
- func (that *Runner) GetProxyByIndex(idxStr string, useDomain ...bool) (p *outbound.ProxyItem)
- func (that *Runner) GetShell() *IShell
- func (that *Runner) GetStarter() *exec.Cmd
- func (that *Runner) OpenShell()
- func (that *Runner) PingKeeper() bool
- func (that *Runner) Restart(args ...string) (result string)
- func (that *Runner) SaveArgsToHistory(args ...string)
- func (that *Runner) SetKeeperStarter(starter *exec.Cmd)
- func (that *Runner) SetStarter(starter *exec.Cmd)
- func (that *Runner) Start(args ...string)
- func (that *Runner) StartKeeper()
- func (that *Runner) Stop()
- func (that *Runner) StopKeeperByRequest() string
Constants ¶
View Source
const ( ExtraSockName = "neobox_ping.sock" OkStr = "ok" ProxyHistoryFile = ".proxy_history" )
View Source
const ( FromWireguard string = "w" FromEdgetunnel string = "e" FromManually string = "m" )
index prefix for proxy
View Source
const ( // restart cli options RestartShowProxy string = "showproxy" RestartShowConfig string = "showconfig" RestartUseDomain string = "usedomain" RestartForceSingbox string = "forcesingbox" )
View Source
const (
NeoKeeperSockName = "neobox_keeper.sock"
)
Variables ¶
View Source
var StopChan chan struct{} = make(chan struct{})
Functions ¶
This section is empty.
Types ¶
type IShell ¶
func (*IShell) PingServer ¶
func (*IShell) PingVerifier ¶
func (*IShell) StartServer ¶
func (that *IShell) StartServer()
func (*IShell) StartShell ¶
func (that *IShell) StartShell()
type Keeper ¶
func (*Keeper) GetStarter ¶
func (*Keeper) PingKeeper ¶
func (*Keeper) SetStarter ¶
func (*Keeper) StopByRequest ¶
type Runner ¶
type Runner struct { CNF *conf.NeoConf Client client.IClient CurrentProxy *outbound.ProxyItem NextProxy *outbound.ProxyItem // contains filtered or unexported fields }
func (*Runner) DoesGeoInfoFileExist ¶
func (*Runner) GetArgsFromHistory ¶
func (*Runner) GetKeeperStarter ¶
func (*Runner) GetProxyByIndex ¶
func (*Runner) GetStarter ¶
func (*Runner) PingKeeper ¶
func (*Runner) SaveArgsToHistory ¶
func (*Runner) SetKeeperStarter ¶
func (*Runner) StartKeeper ¶
func (that *Runner) StartKeeper()
func (*Runner) StopKeeperByRequest ¶
Click to show internal directories.
Click to hide internal directories.