influx

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

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package influx provides helper functions for parsing InfluxDB client configurations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   string `json:"server"`
	Database string `json:"database"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Config holds a Influx client configuration

func LoadConfig

func LoadConfig(filepath string) (Config, error)

LoadConfig parses a InfluxDB client configuration from a simple JSON file

Jump to

Keyboard shortcuts

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