Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWildcardHost ¶ added in v1.3.0
Types ¶
type Config ¶
type Config struct { Title string `config:"title"` Version string `config:"version"` Author string `config:"author"` Server struct { Host string `config:"host"` Port int64 `config:"port"` } `config:"server"` Upstreams []string `config:"upstreams"` Cache struct { Engine string `config:"engine,default=memory"` MaxAge int64 `config:"max_age"` Config struct { Host string `config:"host"` Port int64 `config:"port"` Db int64 `config:"db"` Password string `config:"password"` Prefix string `config:"prefix"` } `config:"config"` } `config:"cache"` Log struct { Transport string `config:"transport"` Level string `config:"level"` } `config:"log"` Hosts struct { Enable bool `config:"enable"` File string `config:"file"` } `config:"hosts"` }
Config is the configuration of lighthouse
type IPS ¶ added in v1.3.0
type IPS struct {
// contains filtered or unexported fields
}
IPS is the IPs manager
func (*IPS) GetByExactHost ¶ added in v1.3.4
GetByHost returns the IPs of the extract host
func (*IPS) GetByWildcardHost ¶ added in v1.3.0
GetByWildcardHost returns the IPs of the wildcard host
Click to show internal directories.
Click to hide internal directories.