Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2023 Changes in this version + type Database struct + func NewDatabase(storage *storage.Storage, name string) *Database + func (database *Database) CreateDatabase() error + func (database *Database) CreateDomainsTable() error + func (database *Database) CreateProxiesTable() error + func (database *Database) CreateTables() error + func (database *Database) DomainCreate(domain string, proxify bool) bool + func (database *Database) DomainDelete(domain string) bool + func (database *Database) DomainExists(domain string) bool + func (database *Database) DomainGet(domain string) (int, string, bool) + func (database *Database) DomainList() map[string]bool + func (database *Database) DomainUpdate(domain string, proxify bool) bool + func (database *Database) GetConnection() *sql.DB + func (database *Database) GetDomainsTableName() string + func (database *Database) GetName() string + func (database *Database) GetProxiesTableName() string + func (database *Database) GetStorage() *storage.Storage + func (database *Database) ProxyCreate(proxyType, proxyHost string, proxyPort int) bool + func (database *Database) ProxyDelete(proxyType, proxyHost string, proxyPort int) bool + func (database *Database) ProxyDisableAuthentication(proxyType, proxyHost string, proxyPort int) bool + func (database *Database) ProxyEnableAuthentication(proxyType, proxyHost string, proxyPort int, username, password string) bool + func (database *Database) ProxyExists(proxyType, proxyHost string, proxyPort int) bool + func (database *Database) ProxyFindByHost(proxyHost string) []*ProxyServer + func (database *Database) ProxyList() []string + func (database *Database) Start() error + func (database *Database) Stop() error + func (database *Database) TableExists(table string) bool + type ProxyServer struct + Host string + Password *string + Port int + Type string + Username *string