Documentation ¶
Index ¶
- Constants
- 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
- type Proxy
- type Remote
- type User
Constants ¶
View Source
const ( MODE_LOCAL = "local" MODE_REMOTE = "remote" MODE_DOMAIN = "domain" )
View Source
const DOMAIN_TABLE_NAME = "domains"
View Source
const PROXY_TABLE_NAME = "proxys"
View Source
const REMOTE_TABLE_NAME = "remotes"
View Source
const USER_TABLE_NAME = "users"
Variables ¶
This section is empty.
Functions ¶
func DoaminUpdate ¶
func Init ¶
func Init(c db.Connection)
func ProxyUpdate ¶
func RemoteUpdate ¶
func UserUpdate ¶
Types ¶
type Domain ¶
type Domain struct { ID int `gorm:"column:id"` Tag string `gorm:"column:tag"` Domains string `gorm:"column:domains"` Enable int `gorm:"column:enable"` }
func DomainFind ¶
type Proxy ¶
type Proxy struct { ID int `gorm:"column:id"` Tag string `gorm:"column:tag"` Enable int `gorm:"column:enable"` Iface string `gorm:"column:interface"` Port int `gorm:"column:port"` Auth int `gorm:"column:auth"` Protocal string `gorm:"column:protocal"` Remote string `gorm:"column:remote"` Mode string `gorm:"column:mode"` Status string `gorm:"column:status"` }
func ProxyFindByID ¶
type Remote ¶
type Remote struct { ID int `gorm:"column:id"` Tag string `gorm:"column:tag"` Enable int `gorm:"column:enable"` Address string `gorm:"column:address"` Auth int `gorm:"column:auth"` User string `gorm:"column:user"` Password string `gorm:"column:password"` Protocal string `gorm:"column:protocal"` Status string `gorm:"column:status"` }
func RemoteFind ¶
Click to show internal directories.
Click to hide internal directories.