Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
TokenPrefix string `yaml:"token_prefix"`
}
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Database DatabaseConfig `yaml:"database"`
Search SearchConfig `yaml:"search"`
GitStore GitStoreConfig `yaml:"gitstore"`
RateLimit RateLimitConfig `yaml:"rate_limit"`
Auth AuthConfig `yaml:"auth"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type DatabaseConfig ¶
type GitStoreConfig ¶
type GitStoreConfig struct {
BasePath string `yaml:"base_path"`
Mirror MirrorConfig `yaml:"mirror"`
Import ImportConfig `yaml:"import"`
}
type ImportConfig ¶
type MirrorConfig ¶
type RateLimitConfig ¶
type SearchConfig ¶
type SearchConfig struct {
IndexPath string `yaml:"index_path"` // Bleve index directory
}
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.