config

package
v0.0.0-...-f3810e2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 1 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 {
	ConsumerKey    string `mapstructure:"API_KEY"`
	ConsumerSecret string `mapstructure:"API_KEY_SECRET"`
	AccessToken    string `mapstructure:"ACCESS_TOKEN"`
	AccessSecret   string `mapstructure:"ACCESS_TOKEN_SECRET"`
	APIBearerToken string `mapstructure:"BEARER_TOKEN"`

	DatabaseUser string `mapstructure:"DB_USER"`
	DatabasePass string `mapstructure:"DB_PASS"`
	DatabaseHost string `mapstructure:"DB_HOST"`
	DatabasePort string `mapstructure:"DB_PORT"`
	DatabaseName string `mapstructure:"DB_NAME"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Jump to

Keyboard shortcuts

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