config

package
v0.0.0-...-7c824b2 Latest Latest
Warning

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

Go to latest
Published: May 4, 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 ServiceConfig

type ServiceConfig struct {
	ServerHost               string `envconfig:"SERVER_HOST" default:"0.0.0.0"`
	ServerPort               int    `envconfig:"SERVER_PORT" default:"8080"`
	ServerGRPCHost           string `envconfig:"SERVER_GRPC_HOST" default:"0.0.0.0"`
	ServerGRPCPort           int    `envconfig:"SERVER_GRPC_PORT" default:"8081"`
	ServiceName              string `envconfig:"SERVICE_NAME" default:"capten-server"`
	Database                 string `envconfig:"DATABASE" default:"astra"`
	CleanupDatabase          bool   `envconfig:"CLEANUP_DATABASE" default:"false"`
	AuthEnabled              bool   `envconfig:"AUTH_ENABLED" default:"false"`
	RegisterLaunchAppsConifg bool   `envconfig:"REGISTER_LAUNCH_APPS_CONFIG" default:"true"`
	CaptenOAuthURL           string `envconfig:"CAPTEN_OAUTH_URL" default:"https://alpha.optimizor.app/api/.ory"`
}

func GetServiceConfig

func GetServiceConfig() (ServiceConfig, error)

Jump to

Keyboard shortcuts

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