cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "yanic",
	Short: "Yet another node info collector",
	Long:  `A respondd client that fetches, stores and publishes information about a Freifunk network.`,
}

RootCmd represents the base command when called without any subcommands

View Source
var VERSION string

VERSION is set at build time

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Config

type Config struct {
	Respondd  respond.Config
	Webserver webserver.Config
	Nodes     runtime.NodesConfig
	Database  database.Config
}

Config represents the whole configuration

func ReadConfigFile

func ReadConfigFile(path string) (config *Config, err error)

ReadConfigFile reads a config model from path of a yml file

Jump to

Keyboard shortcuts

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