configuration

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 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"`
	UnauthenticatedApiPort string   `json:"unauthenticated_api_port"`
	PostgresHost           string   `json:"postgres_host"`
	PostgresPort           uint16   `json:"postgres_port"`
	PostgresUser           string   `json:"postgres_user" config:"secret"`
	PostgresDb             string   `json:"postgres_db"`
	PostgresPw             string   `json:"postgres_pw" config:"secret"`
	PostgresUsageSchema    string   `json:"postgres_usage_schema"`
	PermissionsUrl         string   `json:"permissions_url"`
	ServingUrl             string   `json:"serving_url"`
	MemcachedUrls          []string `json:"memcached_urls"`
	Debug                  bool     `json:"debug"`
	DeviceRepoUrl          string   `json:"device_repo_url"`
	DeviceSelectionUrl     string   `json:"device_selection_url"`
	ImportRepoUrl          string   `json:"import_repo_url"`
	DefaultTimezone        string   `json:"default_timezone"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳