config

package
v0.0.0-...-30f42cf Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config provides an abstraction around configuration and allows creation from the environment

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupEnvironment

func SetupEnvironment(trelloKey, trelloToken, trelloNextActionsListID, trelloProjectsListID string)

SetupEnvironment sets environment variables specified in the function

func TeardownEnvironment

func TeardownEnvironment()

TeardownEnvironment sets environment variables back to normal

Types

type Config

type Config struct {
	TrelloKey               string
	TrelloToken             string
	TrelloNextActionsListID string
	TrelloProjectsListID    string
}

Config represents a configuration for the app

func FromEnvironment

func FromEnvironment() (*Config, error)

FromEnvironment creates a Config from environment variables

Jump to

Keyboard shortcuts

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