conf

package
Version: v0.0.0-...-038a048 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	RootDirectory string `json:"RootDirectory"`
	IndexFilename string `json:"IndexFilename"`
	Port          string `json:"Port"`
	LogFile       string `json:"LogFile"`
	// contains filtered or unexported fields
}

Configuration loads the config file

func NewConfig

func NewConfig(filename string, verbosity bool) Configuration

NewConfig is a function for creating a new configuration

func (*Configuration) GetLogger

func (c *Configuration) GetLogger() *logger.Logger

func (*Configuration) Must

func (c *Configuration) Must(e error, logstring string)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL