Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(defaultRelConfigPath string)
Types ¶
type Config ¶
type Config struct { OAuth2 GiteaOauth2Config `yaml:"oauth2"` Remote RemoteConfigCenter `yaml:"remote"` DB DBConfig `yaml:"db"` Redis RedisConfig `yaml:"redis"` Sarama SaramaConfig `yaml:"sarama"` GRPC GRPCConfig `yaml:"grpc"` }
var Cfg Config
type GRPCConfig ¶
type GRPCConfig struct { Secure bool `yaml:"secure"` Intr IntrConfig `yaml:"intr"` }
type GiteaOauth2Config ¶
type IntrConfig ¶
type RedisConfig ¶
type RedisConfig struct {
Addr string `yaml:"addr"`
}
type RemoteConfigCenter ¶
type SaramaConfig ¶
type SaramaConfig struct {
Addr []string `yaml:"addr"`
}
Click to show internal directories.
Click to hide internal directories.