conf

package
v0.0.0-...-bee09c4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Port         int `default:"4000"`
	DB           *DBConfiguration
	JWT          *globalConfig.JWTConfiguration
	ProjectID    string                     `split_words:"true"`
	ErrorTracker *ErrorTrackerConfiguration `split_words:"true"`
}

Configuration ...

func LoadConfig

func LoadConfig(filename string) (*Configuration, error)

LoadConfig loads the configuration from a file

type DBConfiguration

type DBConfiguration struct {
	URL string
}

DBConfiguration ...

type ErrorTrackerConfiguration

type ErrorTrackerConfiguration struct {
	URL string
}

ErrorTrackerConfiguration ...

Jump to

Keyboard shortcuts

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