config

package
v0.0.0-...-222756a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 3 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 {
	IsDebug *bool `yaml:"is_debug"`
	Listen  struct {
		Type   string `yaml:"type" env-default:"port"`
		BindIP string `yaml:"bind_ip" env-default:"localhost"`
		Port   string `yaml:"port" env-default:"8080"`
	}
	MongoDB struct {
		Host                string `yaml:"host" env-required:"true"`
		Port                string `yaml:"port" env-required:"true"`
		Username            string `yaml:"username" env-required:"true"`
		Password            string `yaml:"password" env-required:"true"`
		AuthDB              string `yaml:"auth_db" env-required:"true"`
		Database            string `yaml:"database" env-required:"true"`
		CollectionUsers     string `yaml:"collection_users" env-required:"true"`
		CollectionUserGames string `yaml:"collection_user_games" env-required:"true"`
	} `yaml:"mongodb" env-required:"true"`
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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