config

package
v0.0.0-...-f2ad996 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config *Config
	Logger *slog.Logger
}

type Config

type Config struct {
	AppID          int64  `mapstructure:"APP_ID"`
	InstallationID int64  `mapstructure:"APP_INSTALLATION_ID"`
	PrivateKey     string `mapstructure:"APP_PRIVATE_KEY"`
	AccessToken    string `mapstructure:"ACCESS_TOKEN"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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