config

package
v0.0.0-...-386bb05 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: GPL-3.0 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 {
	Server Server `yaml:"server"`
}

func GetConfiguration

func GetConfiguration() *Config

GetConfiguration retrieves configuration from config file

type Endpoint

type Endpoint struct {
	Name       string `yaml:"name"`
	TlsEnabled bool   `yaml:"tlsEnabled"`
	EnvType    string `yaml:"envType"`
}

type Port

type Port struct {
	Name string `yaml:"name"`
	Port int64  `yaml:"port"`
}

type Server

type Server struct {
	Env       string     `yaml:"environment"`
	Ports     []Port     `yaml:"ports"`
	Endpoints []Endpoint `yaml:"endpoints"`
	Timeouts  []Timeout  `yaml:"timeouts"`
}

type Timeout

type Timeout struct {
	Name  string `yaml:"name"`
	Value int    `yaml:"value"`
}

Jump to

Keyboard shortcuts

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