config

package
v0.0.0-...-932a008 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config loads global, immutable state that persists across the service's lifetime. It can include configuration populated by environment variables, static files and other sources of input that persist.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GQLServer gql.Config
	DB        storage.Config
	Postmark  emailclient.Config
}

Config includes the data fields that the other microservice components need to set up.

func New

func New() (Config, error)

New takes its 'input' from environment variables and returns everything the microservice needs to serve requests, including a port, endpoint and database configuration.

Jump to

Keyboard shortcuts

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