config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Address string `default:"localhost"`
	Port    int    `default:"8081"`
}

type Config

type Config struct {
	App     App
	Health  Health
	Storage sb.Config
}

func Read

func Read() (cfg Config, err error)

Read reads the config from the config file, environment variables and flags.

type Health

type Health struct {
	Address string `default:"localhost"`
	Port    int    `default:"8082"`
}

Jump to

Keyboard shortcuts

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