config

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 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 {
	BaseURL     string
	LogLevel    logrus.Level
	LegalAgents []string
	Port        int
}

Config contains necessary configuration for the service

func Generate

func Generate() (cfg Config, err error)

Generate retrieves necessary information from the environment to configure the service

func (Config) Validate

func (receiver Config) Validate() error

Validate ensures necessary configuration is valid and available

Jump to

Keyboard shortcuts

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