Versions in this module Expand all Collapse all v1 v1.4.0 Dec 13, 2022 Changes in this version + const DOMAIN_TABLE_NAME + const MODE_DOMAIN + const MODE_LOCAL + const MODE_REMOTE + const PROXY_TABLE_NAME + const REMOTE_TABLE_NAME + const USER_TABLE_NAME + func DoaminUpdate(tag string, update func(u *Domain)) error + func Init(c db.Connection) + func ProxyUpdate(tag string, update func(u *Proxy)) error + func RemoteUpdate(tag string, update func(u *Remote)) error + func UserUpdate(name string, update func(u *User)) error + type Domain struct + Domains string + Enable int + ID int + Tag string + func DomainFind(tag string) *Domain + func DomainGet() []Domain + type Proxy struct + Auth int + Enable int + ID int + Iface string + Mode string + Port int + Protocal string + Remote string + Status string + Tag string + func ProxyFind(tag string) *Proxy + func ProxyFindByID(id string) *Proxy + func ProxyGet() []Proxy + type Remote struct + Address string + Auth int + Enable int + ID int + Password string + Protocal string + Status string + Tag string + User string + func RemoteFind(tag string) *Remote + func RemoteGet() []Remote + type User struct + Enable int + Flow int + ID int + Online int + Password string + User string + func UserFind(name string) *User + func UserGet() []User