Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Vers contains the version number set at build time Vers string )
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Mu sync.RWMutex Port int `yaml:"ListenPort"` MsgLog string `yaml:"MessageLog"` ReqLog string `yaml:"RequestLog"` DBType string `yaml:"DatabaseType"` DBPath string `yaml:"DatabasePath"` AssetsDir string `yaml:"AssetsDirectory"` StaticDir string `yaml:"StaticFilesDirectory"` AdminPassHash string `yaml:"-"` StdoutLogging bool `yaml:"StdoutLogging"` CacheInterval time.Duration `yaml:"StatusFetchInterval"` DBInterval time.Duration `yaml:"DatabasePushInterval"` Instance `yaml:"Instance"` }
Configuration values are held in an instance of this struct.
type Instance ¶
type Instance struct { Vers string `yaml:"-"` Name string `yaml:"Instance.SiteName"` URL string `yaml:"Instance.URL"` Owner string `yaml:"Instance.OwnerName"` Mail string `yaml:"Instance.Email"` Desc string `yaml:"Instance.Description"` }
Instance refers to meta data about this specific instance of getwtxt
type RemoteRegistries ¶
type RemoteRegistries struct {
List []string
}
RemoteRegistries holds a list of remote registries to periodically scrape for new users. The remote registries must have been added via POST like a user.
Click to show internal directories.
Click to hide internal directories.