config

package
v0.0.0-...-34c5bf1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init reads the config file and loads it into a global variable

Types

type Config

type Config struct {
	Database              Database            `json:"database"`
	ProjectName           string              `json:"projectName"`
	DockerComposeFilePath string              `json:"dockerComposeFilePath"`
	Groups                map[string][]string `json:"groups"`
}

Config holds options for the tool

func Get

func Get() *Config

Get returns the initialised config struct

type Database

type Database struct {
	Service          string `json:"service"`
	AdminService     string `json:"adminService"`
	AdminServicePath string `json:"adminServicePath"`
	Engine           string `json:"engine"`
	Username         string `json:"username"`
	Password         string `json:"password"`
}

Database holds config for the database service

Jump to

Keyboard shortcuts

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