Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigPath ¶
func GetDefaultConfigPath() string
GetDefaultConfigPath returns the default config file path.
Types ¶
type Config ¶
type Config struct {
GitHub GitHubConfig `yaml:"github"`
Reconcile ReconcileConfig `yaml:"reconcile"`
Log LogConfig `yaml:"log"`
WebAPI WebAPIConfig `yaml:"webapi"`
}
Config represents the entire application configuration.
func Load ¶
Load reads and parses the config file. If the file does not exist, the application falls back to environment variables and built-in defaults so that a config file is not required.
func (*Config) GetPrivateKey ¶
GetPrivateKey returns the private key bytes. Priority: GH_APP_PRIVATE_KEY env var > private_key field > private_key_path file.
type GitHubConfig ¶
type GitHubConfig struct {
AppID int64 `yaml:"app_id"`
PrivateKey string `yaml:"private_key"`
PrivateKeyPath string `yaml:"private_key_path"`
}
GitHubConfig holds GitHub App credentials.
type ReconcileConfig ¶
type ReconcileConfig struct {
IntervalMinutes int `yaml:"interval_minutes"`
DuplicateGuardSeconds int `yaml:"duplicate_guard_seconds"`
DryRun bool `yaml:"dry_run"`
Timezone string `yaml:"timezone"`
}
ReconcileConfig holds reconciliation loop settings.
type WebAPIConfig ¶
type WebAPIConfig struct {
Enabled bool `yaml:"enabled"`
Host string `yaml:"host"`
Port int `yaml:"port"`
}
WebAPIConfig holds web API server settings.
Click to show internal directories.
Click to hide internal directories.