Documentation ¶
Index ¶
- func AccessAdd(name string, typ string, lists []string) error
- func AccessDel(name string) error
- func AccessFree(name string) error
- func AccessUpdateNotice(callback func(event db.WatchEvent)) error
- func AccessUsed(name string) error
- func ProxyAccessListAdd(id string, access string) error
- func ProxyAccessListDel(id string, access string) error
- func ProxyAdd(name string, ipaddr string, protocal string, port int, instance int, auth bool) error
- func ProxyDel(id string) error
- func ProxyRuleListAdd(id string, rule string) error
- func ProxyRuleListDel(id string, rule string) error
- func ProxyRunNumber(id string, number int) error
- func ProxyStatUpdate(id string, stat int64) error
- func ProxyUpdate(id string, ipaddr string, protocal string, port int, instance int, auth bool) error
- func ProxyUpdateNotice(callback func(event db.WatchEvent)) error
- func ProxyUsergroupListAdd(id string, usergroup string) error
- func ProxyUsergroupListDel(id string, usergroup string) error
- func RuleAdd(name string, prior int, address string, protocal string, auth AuthInfo) error
- func RuleAliveSet(name string, alive string) error
- func RuleDel(name string) error
- func RuleKeepAlive()
- func RuleStatUpdate(name string, stat int64) error
- func RuleUnused(name string) error
- func RuleUpdate(name string, prior int, address string, protocal string, auth AuthInfo) error
- func RuleUpdateNotice(callback func(event db.WatchEvent)) error
- func RuleUsed(name string) error
- type Access
- type AuthInfo
- type Proxy
- type Rule
- type RuleSortType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessFree ¶
func AccessUpdateNotice ¶
func AccessUpdateNotice(callback func(event db.WatchEvent)) error
func AccessUsed ¶
func ProxyAccessListAdd ¶
func ProxyAccessListDel ¶
func ProxyRuleListAdd ¶
func ProxyRuleListDel ¶
func ProxyRunNumber ¶
func ProxyStatUpdate ¶
func ProxyUpdate ¶
func ProxyUpdateNotice ¶
func ProxyUpdateNotice(callback func(event db.WatchEvent)) error
func ProxyUsergroupListAdd ¶
func ProxyUsergroupListDel ¶
func RuleAliveSet ¶
func RuleKeepAlive ¶
func RuleKeepAlive()
func RuleStatUpdate ¶
func RuleUnused ¶
func RuleUpdate ¶
func RuleUpdateNotice ¶
func RuleUpdateNotice(callback func(event db.WatchEvent)) error
Types ¶
type Access ¶
type Access struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` Date string `json:"date"` Status string `json:"status"` List []string `json:"list"` }
func AccessAllGet ¶
type Proxy ¶
type Proxy struct { ID string Date string Name string Protocal string IP string Port int RunNumer int TotalNumber int Stat int64 Cnt int64 Status string AuthSwitch bool Usergroup []string Access []string Rule []string }
func ProxyAllGet ¶
type Rule ¶
type Rule struct { ID string Prior int Name string Date string Protocal string Address string Stat int64 Alive string Status string Auth AuthInfo }
func RuleAllGet ¶
type RuleSortType ¶
type RuleSortType []*Rule
func (RuleSortType) Len ¶
func (a RuleSortType) Len() int
func (RuleSortType) Less ¶
func (a RuleSortType) Less(i, j int) bool
func (RuleSortType) Swap ¶
func (a RuleSortType) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.