Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewConfig, wire.FieldsOf(new(Config), "Auth"), wire.FieldsOf(new(Config), "Database"), wire.FieldsOf(new(Config), "Log"), wire.FieldsOf(new(Config), "Cache"), wire.FieldsOf(new(Config), "HTTP"), wire.FieldsOf(new(Config), "GRPC"), wire.FieldsOf(new(Config), "MQ"), wire.FieldsOf(new(Config), "Judge"), wire.FieldsOf(new(Config), "Cron"), )
Functions ¶
This section is empty.
Types ¶
type Compile ¶
type Compile struct {
Image string `yaml:"image"`
Timeout string `yaml:"timeout"`
Memory string `yaml:"memory"`
CPUs float32 `yaml:"cpus"`
CommandTemplate []string `yaml:"command_template"`
SourceFileName string `yaml:"source_file_name"`
ProgramFileName string `yaml:"program_file_name"`
}
func (*Compile) GetMemoryInBytes ¶
type Config ¶
type Config struct {
Auth Auth `yaml:"auth"`
Database Database `yaml:"database"`
Log Log `yaml:"log"`
Cache Cache `yaml:"cache"`
HTTP HTTP `yaml:"http"`
GRPC GRPC `yaml:"grpc"`
MQ MQ `yaml:"mq"`
Judge Judge `yaml:"judge"`
Cron Cron `yaml:"cron"`
}
func NewConfig ¶
func NewConfig(configFilePath ConfigFilePath) (Config, error)
type ConfigFilePath ¶
type ConfigFilePath string
type CreateSystemAccounts ¶
type Cron ¶
type Cron struct {
CreateSystemAccounts CreateSystemAccounts `yaml:"create_system_accounts"`
}
type Execute ¶
type Execute struct {
Image string `yaml:"image"`
CPUs float32 `yaml:"cpus"`
Memory string `yaml:"memory"`
Timeout string `yaml:"timeout"`
CommandTemplate []string `yaml:"command_template"`
}
func (Execute) GetMemoryInBytes ¶
Click to show internal directories.
Click to hide internal directories.