config

package
v0.0.0-...-905eacb Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 2 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 {
	Database     mongo.DatabaseConfig `yaml:"database"`
	ServerConfig ServerConfig         `yaml:"serverconfig"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type ServerConfig

type ServerConfig struct {
	Port string `yaml:"port"`
	Host string `yaml:"host"`
}

Jump to

Keyboard shortcuts

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