configs

package
v0.0.0-...-2de19fb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 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 AuthConfig

type AuthConfig struct {
	Secret string
	Exp    int
}

type Config

type Config struct {
	Env    string
	Auth   AuthConfig
	DB     DBConfig
	Server ServerConfig
	Job    JobConfig
	Teams  TeamsConfig
}

func ReadConfigs

func ReadConfigs(path string) (Config, error)

type DBConfig

type DBConfig struct {
	Driver string
	URI    string
}

type JobConfig

type JobConfig struct {
	SampleJobPeriod           int `yaml:"sampleJobPeriod"`
	ProjectNotificationPeriod int `yaml:"projectNotificationPeriod"`
}

type ServerConfig

type ServerConfig struct {
	Port int
	Host string
}

func (*ServerConfig) GetAddress

func (s *ServerConfig) GetAddress() string

type TeamsConfig

type TeamsConfig struct {
	AppID       string `yaml:"appID"`
	AppPassword string `yaml:"appPassword"`
	Port        int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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