config

package
Version: v0.0.0-...-6713636 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 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"`

	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"`
	} `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{}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL