config

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Prefix = "BF"

Variables

This section is empty.

Functions

func GetBuildInfo

func GetBuildInfo() (sha, timestamp string)

GetBuildInfo returns build info from the binary.

func Log

func Log(level slog.Level)

Types

type Spec

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

Spec configures a bifrost server.

Jump to

Keyboard shortcuts

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