config

package
v0.0.0-...-3b9963d Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig struct {
	Type   string
	Config map[string]string
}

type FrontendConfig

type FrontendConfig struct {
	Type    string
	Config  map[string]string
	Backend string
}

type GlobalConfig

type GlobalConfig struct {
	Frontends map[string]FrontendConfig
	Backends  map[string]BackendConfig
	Api       string
	Utilities map[string]string
}

func Read

func Read(filename string) GlobalConfig

func (*GlobalConfig) GetBackends

func (gc *GlobalConfig) GetBackends() map[string]backends.Backend

func (GlobalConfig) GetFrontends

func (gc GlobalConfig) GetFrontends() []frontends.Frontend

func (*GlobalConfig) GetUtilities

func (gc *GlobalConfig) GetUtilities() map[string]utils.Utility

Jump to

Keyboard shortcuts

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