internal

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionalEnv added in v0.5.0

func OptionalEnv(name string, defaultValue string) string

func OptionalUrlEnv added in v0.5.0

func OptionalUrlEnv(name string, defaultValue string) url.URL

func RequireUrlEnv added in v0.5.0

func RequireUrlEnv(name string, purpose ConfigPurpose) url.URL

func RequiredEnv added in v0.5.0

func RequiredEnv(name string, purpose ConfigPurpose) string

Types

type ConfigPurpose

type ConfigPurpose int
var ConfigPurposeAny ConfigPurpose = 0
var ConfigPurposeClient ConfigPurpose = 1
var ConfigPurposeServer ConfigPurpose = 2

func GetConfigPurpose

func GetConfigPurpose() ConfigPurpose

Jump to

Keyboard shortcuts

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