config

package
v0.0.0-...-e3ff091 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config defines the environment variable and command-line flags

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindAddr                   string `env:"BIND_ADDR"                        flag:"bind-addr"                      flagDesc:"Bind address"`
	MongoDBURL                 string `env:"MONGODB_URL"                      flag:"mongodb-url"                    flagDesc:"MongoDB server URL"`
	Database                   string `env:"INSOLVENCY_MONGODB_DATABASE"      flag:"mongodb-database"               flagDesc:"MongoDB database for data"`
	MongoCollection            string `env:"INSOLVENCY_MONGODB_COLLECTION"    flag:"mongodb-collection"             flagDesc:"The name of the mongodb collection"`
	IsEfsAllowListAuthDisabled bool   `` /* 163-byte string literal not displayed */
	EnableNonLiveRouteHandlers bool   `` /* 190-byte string literal not displayed */
}

Config defines the configuration options for this service.

func Get

func Get() (*Config, error)

Get returns a pointer to a Config instance populated with values from environment or command-line flags

Jump to

Keyboard shortcuts

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