cfg

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Flags *Flags
}

Config contains the configuration.

func New

func New() *Config

New returns a new instance of Config.

func (*Config) Cwd

func (c *Config) Cwd() (string, error)

Cwd returns the current working directory.

type Flags

type Flags struct {
	Environment         string `envconfig:"SERVICE_LENS_ENV" default:"production"`
	Addr                string `envconfig:"SERVICE_LENS_ADDR" default:":8084"`
	DatabaseURI         string `envconfig:"POSTGRES_URL" default:""`
	DatabaseTablePrefix string `envconfig:"SERVICE_LENS_DATABASE_TABLE_PREFIX" default:"service_lens_"`
	GitHubCallbackURL   string `envconfig:"SERVICE_LENS_GITHUB_CALLBACK_URL" default:""`
	GitHubClientID      string `envconfig:"SERVICE_LENS_GITHUB_CLIENT_ID" default:""`
	GitHubClientSecret  string `envconfig:"SERVICE_LENS_GITHUB_CLIENT_SECRET" default:""`
	EntraIDClientID     string `envconfig:"SERVICE_LENS_ENTRAID_CLIENT_ID" default:""`
	EntraIDClientSecret string `envconfig:"SERVICE_LENS_ENTRAID_CLIENT_SECRET" default:""`
	EntraIDCallbackURL  string `envconfig:"SERVICE_LENS_ENTRAID_CALLBACK_URL" default:""`
	EntraIDTenantID     string `envconfig:"SERVICE_LENS_ENTRAID_TENANT_ID" default:""`
}

Flags contains the command line flags.

func NewFlags

func NewFlags() *Flags

NewFlags returns a new instance of Flags.

Jump to

Keyboard shortcuts

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