config

package
v0.0.0-...-6bc0093 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(path string) error

Types

type Config

type Config struct {
	Environment string
	Database    struct {
		Host     string
		Port     int
		User     string
		Password string
		DBName   string
	}
	Server struct {
		Address string
		Ttl     int64
	}
	Scrapper struct {
		Amazon struct {
			AssociateTag string `mapstructure:"associate_tag"`
			AccessKey    string `mapstructure:"access_key"`
			SecretKey    string `mapstructure:"secret_key"`
		}
	}
}
var Conf Config

Jump to

Keyboard shortcuts

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