config

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveDatabasePath added in v0.2.3

func SaveDatabasePath(path string) error

SaveDatabasePath saves the database path to configuration

func SaveSlackConfig

func SaveSlackConfig(token, channel string) error

SaveSlackConfig saves Slack configuration permanently

func SetDefaults

func SetDefaults()

SetDefaults sets default values for the configuration

Types

type AppConfig

type AppConfig struct {
	Slack        slack.Config
	DatabasePath string
}

AppConfig holds all application configuration

func LoadConfig

func LoadConfig() (*AppConfig, error)

LoadConfig loads the application configuration from viper and environment variables

Jump to

Keyboard shortcuts

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