config

package
v0.0.0-...-bb1ab1e Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FlagName = "config"

Variables

View Source
var Location string

Functions

func CreateConfig

func CreateConfig() error

Types

type Databases

type Databases struct {
	MysqlCredentials   *connection.MySql   `json:"mysql,omitempty" yaml:"mysql,omitempty"`
	MongoDbCredentials *connection.MongoDB `json:"mongoDb,omitempty" yaml:"mongoDb,omitempty"`
}

type Root

type Root struct {
	Setup     *Setup     `json:"setup,omitempty" yaml:"setup,omitempty"`
	Databases *Databases `json:"databases,omitempty" yaml:"databases,omitempty"`
}
var Cfg Root

type Setup

type Setup struct {
	ListeningPort string `json:"listeningPort,omitempty" yaml:"listeningPort,omitempty"`
	CertPath      string `json:"certificatePath,omitempty" yaml:"certPath,omitempty"`
	KeyPath       string `json:"keyPath,omitempty" yaml:"keyPath,omitempty"`
}

Jump to

Keyboard shortcuts

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