config

package
v0.0.0-...-5ac1aa0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0 Imports: 4 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 {
	Name         string
	BaseURL      string `mapstructure:"base-url"`
	Port         int
	Registration bool
	AuthToken    string `mapstructure:"auth-token"`
	Database     struct {
		Host     string
		Port     int
		Database string
		User     string
		Password string
	}
}

func LoadConfigFile

func LoadConfigFile(path string) (Config, error)

Jump to

Keyboard shortcuts

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