Documentation
¶
Index ¶
- Variables
- func AutoSu()
- func ConfigHome() string
- func Execute() error
- func GetDialer(log *logrus.Logger) (d *dialer.Dialer, err error)
- func GetDialerFromInput(testNode bool, testURL string) (d *dialer.Dialer, err error)
- func GetDialerFromLink(nodeLink string, testNode bool, testURL string) (d *dialer.Dialer, err error)
- func GetDialerFromSubscription(log *logrus.Logger, testNode bool, testURL string) (d *dialer.Dialer, err error)
- func GetDialerFromSubscriptionLastNodeCache(testNode bool, testURL string) (d *dialer.Dialer)
- func GetLogger(verbose int) *logrus.Logger
- func WriteConfig(settings map[string]interface{}, configPath string) error
- type ClashConfig
- type DialerWithLatency
- type SIP008
- type SIP008Server
Constants ¶
This section is empty.
Variables ¶
View Source
var UnableToConnectErr = fmt.Errorf("unable to connect to the proxy node")
View Source
var (
Version = "unknown"
)
Functions ¶
func ConfigHome ¶ added in v0.2.12
func ConfigHome() string
func GetDialerFromInput ¶
func GetDialerFromLink ¶
func WriteConfig ¶
Types ¶
type ClashConfig ¶
type ClashConfig struct {
Proxy []yaml.Node `yaml:"proxies"`
}
type DialerWithLatency ¶
type SIP008 ¶
type SIP008 struct { Version int `json:"version"` Servers []SIP008Server `json:"servers"` BytesUsed int64 `json:"bytes_used"` BytesRemaining int64 `json:"bytes_remaining"` }
type SIP008Server ¶
Click to show internal directories.
Click to hide internal directories.