Discover Packages
github.com/huajiao-tv/dashboard
config
package
Version:
v0.0.0-...-8110dd7
Opens a new window with list of versions in this module.
Published: Jul 10, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
TokenSign = "pepper_bus"
DefaultAvatar = "https://avatars0.githubusercontent.com/u/58962967?s=60&v=4"
)
type Base struct {
Listen int `yaml:"listen"`
AdminPassword string `yaml:"admin-pass"`
}
type Config struct {
Dashboard Base `yaml:"dashboard"`
Keeper Keeper `yaml:"gokeeper"`
LDAP LDAP `yaml:"ldap"`
MySQL Database `yaml:"mysql"`
Redis Redis `yaml:"redis"`
ETCD ETCD `yaml:"etcd"`
}
type Database struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Name string `yaml:"database"`
User string `yaml:"username"`
Password string `yaml:"password"`
}
type ETCD struct {
EndPoints []string `yaml:"endpoints"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
type Keeper struct {
DiscoverAddress string `yaml:"discover"`
AdminAddress string `yaml:"admin-addr"`
Domain string `yaml:"domain"`
}
type LDAP struct {
Enable bool `yaml:"enable"`
Address string `yaml:"address"`
BaseDN string `yaml:"base-dn"`
}
type Redis struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Password string `yaml:"password"`
DB int `yaml:"db"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.