config

package
v0.0.0-...-68e8b16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Env      GoEnv
	Port     int
	Security SecurityConfiguration
	Database persist.DatabaseConfiguration
}

Configuration .

func NewEnvironmentConfiguration

func NewEnvironmentConfiguration() Configuration

NewEnvironmentConfiguration creates a configuration populated from os environment variables.

type GoEnv

type GoEnv string
const (
	Dev  GoEnv = "development"
	Prod GoEnv = "production"
	Test GoEnv = "test"
)

func ValidateEnv

func ValidateEnv(env GoEnv) GoEnv

func (GoEnv) IsProduction

func (env GoEnv) IsProduction() bool

type SecurityConfiguration

type SecurityConfiguration struct {
	JsonWebToken service.JsonWebTokenConfiguration
	Google       service.GoogleAuthenticationConfiguration
}

Jump to

Keyboard shortcuts

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