config

package
v0.0.0-...-56cd9bb Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SMail    string `yaml:"SMail"`
	NotifyBy string `yaml:"NotifyBy"`

	Credentials struct {
		User     string `yaml:"User"`
		Password string `yaml:"Password"`
	} `yaml:"Credentials"`
	Endpoints struct {
		DC struct {
			Host   string `yaml:"Host"`
			Port   int    `yaml:"Port"`
			Domain string `yaml:"Domain"`
			Base   string `yaml:"Base"`
		} `yaml:"DC"`
		SMTP struct {
			Host     string `yaml:"Host"`
			Port     int    `yaml:"Port"`
			User     string `yaml:"User"`
			Password string `yaml:"Password"`
		} `yaml:"SMTP"`
		GitLab  string `yaml:"GitLab"`
		Webhook string `yaml:"Webhook"`
	} `yaml:"Endpoints"`
	Awards struct {
		Like         string `yaml:"Like"`
		Dislike      string `yaml:"Dislike"`
		Ready        string `yaml:"Ready"`
		NotReady     string `yaml:"NotReady"`
		NonCompliant string `yaml:"NonCompliant"`
	} `yaml:"Awards"`
	Projects map[int]*Project `yaml:"Projects"`
}

func NewConfig

func NewConfig() *Config

type Project

type Project struct {
	Teams map[string][]string `yaml:"Teams"`
	Votes int                 `yaml:"Votes"`
}

func (*Project) GetTeamsWithMembers

func (p *Project) GetTeamsWithMembers() TeamsWithMembers

type TeamsWithMembers

type TeamsWithMembers map[string]map[string]struct{}

Jump to

Keyboard shortcuts

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