config

package
v0.0.0-...-a3456bb Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 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 {
	// An map supports multi database connection. The first
	// element of Databases is the default connection. See the
	// file connection.go.
	Databases storage.DatabaseList `json:"database",yaml:"database",ini:"database"`

	// Used to set as the localize language which show in the
	// interface.
	Language string `json:"language",yaml:"language",ini:"language"`
}

Config type is the global config of god3 application. It will be initialized in the engine.

Ref: https://github.com/GoAdminGroup/go-admin/blob/master/modules/config/config.go

func Get

func Get() Config

Get gets the config.

func Set

func Set(cfg Config) Config

Set sets the config.

Jump to

Keyboard shortcuts

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