config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init the configuration from the cli parameters.

Types

type ApplicationConfig

type ApplicationConfig struct {
	LogFolders   []string // Folders that should be watched for changes.
	GrpcBackends []string // gRPC backends to send data to.
	GrpcPort     int      // Port for the gRPC server
}

ApplicationConfig stores all of the input parameters.

func Get

func Get() ApplicationConfig

Get the configuration for this app. You should run 'Init()' before.

Jump to

Keyboard shortcuts

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