config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalConfig = &Config{}

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Cron  string `yaml:"cron"`
	Token string `yaml:"token"`
	Retry int    `yaml:"retry"`
}

type Config

type Config struct {
	Groups     []Group    `yaml:"groups"`
	DataSource DataSource `yaml:"datasource"`
	Backend    Backend    `yaml:"backend"`
	Cleaner    []string   `yaml:"cleaner"`
}

func (*Config) ReadInConfig

func (cfg *Config) ReadInConfig(path string) error

type DataSource

type DataSource struct {
	MySQL MySQL `yaml:"mysql"`
}

type Group

type Group struct {
	Name  string   `yaml:"name"`
	Orgs  []string `yaml:"orgs"`
	Repos []string `yaml:"repos"`
}

type MySQL

type MySQL struct {
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL