mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 20:51:45 +00:00
22 lines
415 B
Go
22 lines
415 B
Go
package util
|
|
|
|
type Config struct {
|
|
Name string `json:"name"`
|
|
Cmd string `json:"cmd"`
|
|
Set []*Variant `json:"set,omitempty"`
|
|
Unset []*Variant `json:"unset,omitempty"`
|
|
}
|
|
|
|
type Type string
|
|
|
|
const (
|
|
TEXT Type = "text"
|
|
VARIABLE Type = "variable"
|
|
)
|
|
|
|
type Variant struct {
|
|
Arguments []string `json:"args"`
|
|
Type Type `json:"type,omitempty"`
|
|
Equator string `json:"equator,omitempty"`
|
|
}
|