environment

package
v0.0.0-...-6b19993 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MrthnConfig

type MrthnConfig struct {
	Server             serverConfig
	DBConnectionString string
	Fitbit             platformConfig
	Google             platformConfig
	Strava             platformConfig
	Callback           string        // This will be the callback for all services. If we need multiple, this may need to change
	ClientTimeout      time.Duration // The timeout for the client that is used to make requests for mrthn
	MrthnWebsiteURL    string        // We will only accept client SignUp requests if it comes from the mrthn website
}

MrthnConfig is the overall structure that will contain our environment configs for the mrthn service

func ReadEnvFile

func ReadEnvFile(env string) (*MrthnConfig, error)

ReadEnvFile takes the environment variables, and puts them all into an EnvironmentConfig struct

Jump to

Keyboard shortcuts

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