config

package
v0.0.0-...-bcff8af Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfJsonPathEnvVar = "CONF_JSON_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerAddress    string `json:"serverAddress" default:":8080"`
	LogLevel         string `json:"logLevel" default:"debug"`
	IndexDataDir     string `json:"indexDataDir" default:"/tmp/data"`
	MaxSearchResults int    `json:"maxSearchResults" default:"10"`
}

func Default

func Default() *Config

func FromFile

func FromFile(configFilePath string) (*Config, error)

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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