Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apiserver ¶
type Config ¶
type Config struct { BindAddr string `yaml:"bind_addr" json:"bind_addr"` BindPort uint16 `yaml:"bind_port" json:"bind_port"` LogLevel string `yaml:"log_level" json:"log_level"` MongoDB *MongoDBConfig `yaml:"mongodb"` APIPrefix string `yaml:"api_prefix" json:"api_prefix"` BlackListURLs []string `yaml:"blacklist_urls" json:"blacklist_urls"` }
type MongoDBConfig ¶
type MongoDBConfig struct { Host string `yaml:"host" json:"host"` Port uint16 `yaml:"port" json:"port"` Database string `yaml:"database" json:"database"` AuthDB string `yaml:"auth_db" json:"auth_db"` Collection string `yaml:"collection" json:"collection"` UsernameFile string `yaml:"username_file" json:"username_file"` PasswordFile string `yaml:"password_file" json:"password_file"` Username string `yaml:"username"` Password string `yaml:"password"` LinkTTL time.Duration `yaml:"link_ttl" json:"link_ttl"` }
func NewMongoDBConfig ¶
func NewMongoDBConfig() *MongoDBConfig
Click to show internal directories.
Click to hide internal directories.