config

package
v0.0.0-...-289f4dd Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 6 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 {
	DBHost       string `env:"POSTGRES_HOST,required"`
	DBPort       int    `env:"POSTGRES_PORT,required"`
	DBUser       string `env:"POSTGRES_USER,required"`
	DBPassword   string `env:"POSTGRES_PASSWORD,required"`
	DBName       string `env:"POSTGRES_NAME,required"`
	PrivateKeyID string `env:"PRIVATE_KEY_ID,required"`

	PrivateJWK jwk.Key
	PublicJWK  jwk.Key
	// contains filtered or unexported fields
}

Config contains the env variables needed to run the servers

func NewFromEnv

func NewFromEnv(vault *vault.Client) (Config, error)

Jump to

Keyboard shortcuts

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