config

package
v0.0.0-...-ea9887a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Env          string
	EnvVars      map[string]string
	Errors       []error
	ChallengeDB  string
	ChallengeDoc string
	ProjectId    string
	// contains filtered or unexported fields
}

func New

func New() *Builder

func (*Builder) Build

func (b *Builder) Build() (*Config, []error)

func (*Builder) WithDotEnv

func (b *Builder) WithDotEnv() *Builder

func (*Builder) WithEnv

func (b *Builder) WithEnv(env string) *Builder

func (*Builder) WithRequiredConfig

func (b *Builder) WithRequiredConfig() *Builder

func (*Builder) WithScannedEnvVars

func (b *Builder) WithScannedEnvVars() *Builder

type Config

type Config struct {
	Env          string
	Logger       *zap.Logger
	EnvVars      map[string]string
	ChallengeDB  string
	ChallengeDoc string
	ProjectId    string
}

Jump to

Keyboard shortcuts

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