config

package
v0.0.0-...-29ca9c5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 1 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 {
	Listen      string
	Periodic    bool
	AllowOrigin []string `toml:"allow-origin"`
	Stathat     *Stathat
	InfluxDB    *InfluxDB `toml:"influxdb"`
}

func ReadFile

func ReadFile(filename string) (*Config, error)

type InfluxDB

type InfluxDB struct {
	URL      string
	Password string
	Username string
	Database string
}

type Stathat

type Stathat struct {
	Key string
}

Jump to

Keyboard shortcuts

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