configuration

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEnvironmentVars

func HandleEnvironmentVars(config Config)

preparations for docker

Types

type Config

type Config = *ConfigStruct

func Load

func Load(location string) (config Config, err error)

type ConfigStruct

type ConfigStruct struct {
	ApiPort             string   `json:"api_port"`
	JwtSigningMethod    string   `json:"jwt_signing_method"` //"rsa", "hmac"
	JwtSigningKey       string   `json:"jwt_signing_key"`
	SqlConnectionString string   `json:"sql_connection_string"`
	PostgresHost        string   `json:"postgres_host"`
	PostgresUser        string   `json:"postgres_user"`
	PostgresPassword    string   `json:"postgres_password"`
	PostgresDb          string   `json:"postgres_db"`
	MemcachedUrls       []string `json:"memcached_urls"`
	Debug               bool     `json:"debug"`
}

Jump to

Keyboard shortcuts

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