config

package
v0.0.0-...-abd2dae Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(cfg interface{}, module string, rootServicePath ...string) interface{}

func ReadModuleConfig

func ReadModuleConfig(cfg interface{}, path string, module string) bool

Types

type API

type API struct {
	NormalPrefix   string
	DefaultTimeout int
}

type DatadogConfig

type DatadogConfig struct {
	Endpoint string
}

type MainConfig

type MainConfig struct {
	Server struct {
		Name string
		Port string
	}
	API     API
	Datadog DatadogConfig
}

MainConfig is the main config file

Jump to

Keyboard shortcuts

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