tray

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	_, ControllerPort = controller.CheckConfig()

	NeedLoadSelector = false
)
View Source
var (
	ConfigGroupsMap map[uint32]map[uint32]string
	SelectorMap     map[string]SelectorInfo
)

Functions

func LoadSelector

func LoadSelector(mGroup *stx.MenuItemEx)

func RefreshProxyGroups

func RefreshProxyGroups(mGroup *stx.MenuItemEx, groupsList *list.List, proxiesList *list.List)

func SwitchGroupAndProxy

func SwitchGroupAndProxy(mGroup *stx.MenuItemEx, sGroup string, sProxy string)

Types

type GroupsList

type GroupsList struct {
	Name    string   `json:"name"`
	Proxies []string `json:"proxies"`
	Type    string   `json:"type"`
}

TEST TODO: not fit standard

type SelectorInfo

type SelectorInfo struct {
	All     []string      `json:"all,omitempty"`
	History []interface{} `json:"history,omitempty"`
	Name    string        `json:"name"`
	Now     string        `json:"now"`
	Type    string        `json:"type"`
}

Jump to

Keyboard shortcuts

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