config

package
v0.0.0-...-58c5833 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package config provides the influxdb-sqlserver specific configuration options.

Index

Constants

View Source
const (
	DefaultLogFileName  string = "influxdb-sqlserver.log"
	DefaultModes        string = "file"
	DefaultBufferLen    int    = 10000
	DefaultLevelConsole string = "Trace"
	DefaultLevelFile    string = "Warn"
	DefaultFormatting   bool   = true
	DefaultLogRotate    bool   = true
	DefaultMaxLines     int    = 1000000
	DefaultMaxSizeShift int    = 28
	DefaultDailyRotate  bool   = true
	DefaultMaxDays      int    = 7

	DefaultSqlScriptPath string = "/usr/local/influxdb-sqlserver/sqlscripts/"

	DefaultPollingInterval        int = 15
	DefaultPollingIntervalIfError int = 60

	DefaultInfluxDBUrl       string = "http://localhost:8086"
	DefaultInfluxDBTimeOut   int    = 0
	DefaultInfluxDBDatabase  string = "SQLSERVER"
	DefaultInfluxDBPrecision string = "ms"
)

Defaults for config variables which are not set

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	IP       string
	Port     int
	Username string
	Password string
}

type TOMLConfig

type TOMLConfig struct {
	InfluxDB influxDB
	Servers  map[string]Server
	Scripts  map[string]*script
	Polling  polling
	Logging  logging
}

Jump to

Keyboard shortcuts

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