config

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 6 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 {
	Mongo      *mongo.MongoConfig                   `json:"mongo"`
	Prometheus *prometheusprovider.PrometheusConfig `json:"prometheus"`
	Kubernetes *kubernetesConfig                    `json:"kubernetes"`
	Registry   *registryConfig                      `json:"registry"`
	Logger     logger.LoggerConfig                  `json:"logger"`

	// the version settings of the current application
	Version string `json:"version"`
}

Config is the structure for vortex

func MustRead

func MustRead(path string) Config

MustRead will read config path

func Read

func Read(path string) (c Config, err error)

Read will read config file

Jump to

Keyboard shortcuts

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