config

package
v0.0.0-...-a355c53 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read()

Types

type Config

type Config struct {
	Server struct {
		Host       string `toml:"host" env:"HOST" env-default:"127.0.0.1"`
		Port       string `toml:"port" env:"PORT" env-default:"3000"`
		StaticPath string `toml:"static" env:"STATIC" env-default:"./static"`
	} `toml:"server"`
	Instagram struct {
		UserId       string `toml:"userid"`
		ClientID     string `toml:"client_id"`
		ClientSecret string `toml:"client_secret"`
		AccessToken  string `toml:"access_token"`
	} `toml:"instagram"`
	Authentication struct {
		KeycloakURL  string `toml:"keycloakURL"`
		Realm        string `toml:"realm"`
		ClientID     string `toml:"clientID"`
		ClientSecret string `toml:"clientSecret"`
		RedirectURI  string `toml:"redirectURI"`
	} `toml:"authentication"`
	Metrics struct {
		GTM string `toml:"gtm" env:"GTM" env-default:""`
	} `toml:"metrics"`
}
var Cfg Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳