internal

package
v0.0.0-...-814ee21 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 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 Config

type Config struct {
	Service Service        `yaml:"services"`
	Rest    Rest           `yaml:"rest"`
	Cors    std.CorsConfig `yaml:"cors"`
}

func LoadConfig

func LoadConfig() (c Config)

func LoadConfigData

func LoadConfigData(configData []byte) Config

func (Config) Validate

func (c Config) Validate()

type Rest

type Rest struct {
	Port   int `yaml:"port"`
	Health int `yaml:"health"`
}

func (Rest) HealthPortValue

func (s Rest) HealthPortValue() string

func (Rest) PortValue

func (s Rest) PortValue() string

type Service

type Service struct {
	Name        string `yaml:"name"`
	Version     string `yaml:"version"`
	Description string `yaml:"description"`
	LogLevel    string `yaml:"logLevel"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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