Documentation ¶
Index ¶
- Constants
- func GetCfgPath() (string, error)
- func Init() error
- func MakeRequest(s Server) *resty.Client
- func MakeWebsocket(s Server, path string) (*websocket.Conn, error)
- func ReadMap(mapping []Field) (map[string]string, error)
- func SaveCfg(cfg *Config) error
- type Config
- type Field
- type HTTPError
- type Node
- type Server
Constants ¶
View Source
const Name = "clash"
Name used in $HOME/.config/${Name}
Variables ¶
This section is empty.
Functions ¶
func GetCfgPath ¶
func MakeRequest ¶
func MakeRequest(s Server) *resty.Client
MakeRequest compose a resty.Client that send request to given Server
Types ¶
Click to show internal directories.
Click to hide internal directories.