config

package
v0.0.0-...-80ac902 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPathArg     = "config-path"
	ConfigPathDefault = "./flibooks.properties"
)

Variables

Functions

This section is empty.

Types

type App

type App struct {
	Database Database
	Server   Server
	Data     Data
	Fb2C     Fb2C
}

func NewAppConfig

func NewAppConfig() (*App, error)

NewAppConfig instantiates the main app config

type Data

type Data struct {
	Dir string
}

type Database

type Database struct {
	Type       string
	Connection string
	LogLevel   string
}

type Fb2C

type Fb2C struct {
	Path string
}

type Server

type Server struct {
	Listen string
}

Jump to

Keyboard shortcuts

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