config

package
v0.0.0-...-0cbe00f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFiles

func LoadFiles(config interface{}, fileNames ...string) error

LoadFiles combines configs in the files and validate the configs

Types

type AppConfig

type AppConfig struct {
	AppID            string `yaml:"app_id"`
	Port             int64  `yaml:"port"`
	Env              string `yaml:"env"`
	TheGraphEndpoint string `yaml:"the_graph_endpoint"`
}

func GetConfig

func GetConfig() (*AppConfig, error)

GetConfig loads the config and return cached instance once loaded

Jump to

Keyboard shortcuts

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