Config_Go

package module
v0.0.0-...-1a528d3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

README

Eden Config

This is a utility component for working with the Eden Config file type.

The config file is just a toml file, however as the customization of the project components increases, this will become more complex.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger  loggingConfig `toml:"logging"`
	Server  serverConfig  `toml:"server"`
	DB      dbConfig      `toml:"database"`
	Discord discordConfig `toml:"discord"`
	PubSub  pubSubConfig  `toml:"pubsub"`
}

Config is the main configuration struct

func ReadConfig

func ReadConfig(path string) (config Config, err error)

ReadConfig function

Jump to

Keyboard shortcuts

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