config

package
v1.2.1-r3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "BF"

Variables

View Source
var (
	Bouncer bouncer
	Issuer  issuer

	// Global program log level.
	LogLevel = new(slog.LevelVar)
)

Functions

func CommitInfo added in v1.1.0

func CommitInfo() (rev string, t time.Time)

CommitInfo returns build information embedded inside the binary.

Types

type Spec

type Spec struct {
	LogLevel  slog.Level `envconfig:"LOG_LEVEL" default:"info"`
	Namespace uuid.UUID  `envconfig:"NS"        default:"1512daa4-ddc1-41d1-8673-3fd19d2f338d"`
	Address   string     `envconfig:"ADDR"      default:"127.0.0.1:8080"`
	CrtUri    string     `envconfig:"CRT"       default:"crt.pem"`
	KeyUri    string     `envconfig:"KEY"       default:"key.pem"`
}

Jump to

Keyboard shortcuts

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