config

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v1.0.21

func Init()

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func (*Application) Add

func (app *Application) Add(name string, configuration map[string]any)

Add config to application.

func (*Application) Env

func (app *Application) Env(envName string, defaultValue ...any) any

Env Get config from env.

func (*Application) Get

func (app *Application) Get(path string, defaultValue ...any) any

Get config from application.

func (*Application) GetBool

func (app *Application) GetBool(path string, defaultValue ...any) bool

GetBool Get bool type config from application.

func (*Application) GetInt

func (app *Application) GetInt(path string, defaultValue ...any) int

GetInt Get int type config from application.

func (*Application) GetString

func (app *Application) GetString(path string, defaultValue ...any) string

GetString Get string type config from application.

func (*Application) Init

func (app *Application) Init() config.Config

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (config *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (config *ServiceProvider) Register()

Jump to

Keyboard shortcuts

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