Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestModule = fx.Module("config_test", fx.Provide( LoadTestConfig, ), )
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider struct {
Hetzner Hetzner `yaml:"hetzner"`
}
type Config ¶
type Config struct {
Listen string `default:":8000" yaml:"listen"`
Mode string `default:"debug" yaml:"mode"`
Directories Directories `yaml:"directories"`
Database Database `yaml:"database"`
RabbitMQ RabbitMQ `yaml:"rabbitmq"`
Notifications Notifications `yaml:"notifications"`
CloudProvider CloudProvider `yaml:"cloudProvider"`
}
func LoadTestConfig ¶
type Directories ¶
type Directories struct {
DataDir string `default:"/koor/clients" yaml:"dataDir"`
}
func (*Directories) ChartsDir ¶
func (c *Directories) ChartsDir() string
func (*Directories) ClientsDir ¶
func (c *Directories) ClientsDir() string
func (*Directories) TemplatesDir ¶
func (c *Directories) TemplatesDir() string
type EmailNotifications ¶
type NotificationType ¶
type NotificationType string
const ( NotificationTypeNoop NotificationType = "noop" NotificationTypeEmail NotificationType = "email" )
type Notifications ¶
type Notifications struct {
Type NotificationType `default:"noop" yaml:"type"`
Email EmailNotifications `yaml:"email"`
}
Click to show internal directories.
Click to hide internal directories.