config

package
v0.0.0-...-0521522 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: GPL-3.0 Imports: 1 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 {
	Server    ServerConfig   `mapstructure:"server"`
	Health    EndpointConfig `mapstructure:"health"`
	Readiness EndpointConfig `mapstructure:"readiness"`
	Resources struct {
		Cpu     ResourceConfig `mapstructure:"cpu"`
		Memory  ResourceConfig `mapstructure:"memory"`
		Storage ResourceConfig `mapstructure:"storage"`
	} `mapstructure:"resources"`
}

func LoadConfig

func LoadConfig() (config Config, err error)

type EndpointConfig

type EndpointConfig struct {
	Status int    `mapstructure:"status"`
	Body   string `mapstructure:"body"`
	Delay  int    `mapstructure:"delay"`
}

type ResourceConfig

type ResourceConfig struct {
	Target   string `mapstructure:"target"`
	Step     string `mapstructure:"step"`
	Interval int    `mapstructure:"interval"`
}

type ServerConfig

type ServerConfig struct {
	Port          int `mapstructure:"port"`
	StartDelay    int `mapstructure:"startDelay"`
	ShutdownDelay int `mapstructure:"shutdownDelay"`
}

Jump to

Keyboard shortcuts

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