configs

package
v0.0.0-...-b093a28 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NilEnv   = Environment("")
	LocalEnv = Environment("LOCAL")
)

Variables

This section is empty.

Functions

func GetMigrationDir

func GetMigrationDir() string

func GetProjectRoot

func GetProjectRoot() string

GetProjectRoot loads env vars from .env at root of repo

func GetSupportedAssets

func GetSupportedAssets() map[string]bool

GetSupportedAssets TODO: Move these to a table in PSQL

func LoadEnv

func LoadEnv()

Types

type DatabaseCredentials

type DatabaseCredentials struct {
	User     string
	Password string
	DBName   string
	Port     int
	Host     string
}

type Environment

type Environment string

type InfluxDbCredentials

type InfluxDbCredentials struct {
	User     string
	Password string
	Token    string
	Port     int
	Host     string
	Org      string
	Bucket   string
}

type Secrets

func GetSecrets

func GetSecrets() (*Secrets, error)

func (*Secrets) IsLocal

func (s *Secrets) IsLocal() bool

type ServerConfig

type ServerConfig struct {
	Port int
}

Jump to

Keyboard shortcuts

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