configs

package
v0.0.0-...-d85391b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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 {
	ExchangeApi ExchangeApiConfig `mapstructure:"exchange-api"`
	MongoDB     MongoDBConfig     `mapstructure:"mongo-db"`
	Server      ServerConfig      `mapstructure:"server"`
}

func GetConfig

func GetConfig() *Config

func LoadConfigs

func LoadConfigs(env string) (*Config, error)

type ExchangeApiConfig

type ExchangeApiConfig struct {
	ApiKey string `mapstructure:"api-key"`
	URL    string `mapstructure:"url"`
}

type MongoDBConfig

type MongoDBConfig struct {
	URL string `mapstructure:"url"`
}

type ServerConfig

type ServerConfig struct {
	Port string `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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