starter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	System = "system"
)

Variables

This section is empty.

Functions

func Add

func Add(name string, conf interface{})

Types

type App

type App struct {
	Project        string   `json:"project"`
	Name           string   `json:"name"`
	Profiles       Profiles `json:"profiles"`
	DataSourceType string   `json:"data_source_type"`
}

type AutoConfiguration

type AutoConfiguration interface {
	Build()
	Instantiate(configuration interface{})
	Configurations() map[string]interface{}
	Configuration(name string) interface{}
	Instances() map[string]interface{}
	Instance(name string) interface{}
}

func GetAutoConfiguration

func GetAutoConfiguration() AutoConfiguration

type DataSource

type DataSource map[string]interface{}

type Env

type Env struct {
	Name  string
	Value string
}

type Logging

type Logging struct {
	Level string `json:"level"`
}

type Profiles

type Profiles struct {
	Include []string `json:"include"`
	Active  string   `json:"active"`
}

type Server

type Server struct {
	Port int32 `json:"port"`
}

type SystemConfiguration

type SystemConfiguration struct {
	App         App          `mapstructure:"app"`
	Server      Server       `mapstructure:"server"`
	Logging     Logging      `mapstructure:"logging"`
	DataSources []DataSource `mapstructure:"dataSources"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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