conf

package
v0.0.0-...-b3df9b4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package conf provides basic configuration handling from a file exposing a single global struct with all configuration.

Index

Constants

This section is empty.

Variables

View Source
var LogWriter *io.PipeWriter

The pipe writer to wrap around standard logger. It is configured in main.

View Source
var Options struct {
	// The address to listen on
	Address string
	// SSL configuration
	SSL struct {
		// The certificate file
		Cert string
		// The private key file
		Key string
	}
	// DB path
	DB string
}

Options anonymous struct holds the global configuration options for the server

Functions

func Default

func Default()

func Load

func Load(filename string) error

Load loads configuration from a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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