step

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCanceled

func IsCanceled(err error) bool

func TryBase64Decode added in v0.3.0

func TryBase64Decode(s string) (bs []byte, err error)

Types

type DelayTest

type DelayTest struct {
	*api.Client
	LastStep Step
	Proxies  []model.ProxyName
}

func (DelayTest) Run

func (dt DelayTest) Run() error

type Exit

type Exit struct{}

func (Exit) Run

func (Exit) Run() error

type Log

type Log struct {
	*api.Client
	LastStep Step
}

func (Log) Run

func (l Log) Run() error

type RSS added in v0.3.0

type RSS struct {
	LastStep Step
}

func (RSS) Run added in v0.3.0

func (r RSS) Run() error

type Root

type Root struct {
	*api.Client
}

func (Root) Run

func (r Root) Run() error

type Step

type Step interface {
	Run() error
}

type SwitchMode

type SwitchMode struct {
	*api.Client
	LastStep Step
}

func (SwitchMode) Run

func (sm SwitchMode) Run() error

func (SwitchMode) SaveMode added in v0.2.1

func (sm SwitchMode) SaveMode(mode T.Mode) error

type SwitchProxy

type SwitchProxy struct {
	*api.Client
	LastStep Step
}

func (SwitchProxy) Run

func (sp SwitchProxy) Run() error

func (SwitchProxy) UpdateProxy

func (sp SwitchProxy) UpdateProxy(proxies map[string]model.Proxy,
	selector model.Proxy, groupName, label string) error

type Traffic

type Traffic struct {
	*api.Client
	LastStep Step
}

func (Traffic) Run

func (t Traffic) Run() error

type VMessRSS added in v0.3.0

type VMessRSS struct {
	Add  string `json:"add"`
	Aid  string `json:"aid"`
	Host string `json:"host"`
	ID   string `json:"id"`
	Net  string `json:"net"`
	Path string `json:"path"`
	Port string `json:"port"`
	Ps   string `json:"ps"`
	TLS  string `json:"tls"`
	Type string `json:"type"`
	V    string `json:"v"`
}

Jump to

Keyboard shortcuts

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