foundation

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

func SetInstance

func SetInstance(app *Application)

Types

type Application

type Application struct {
	*container.Container
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Application

func NewApplication

func NewApplication() *Application

func (*Application) Boot

func (a *Application) Boot()

func (*Application) Config

func (a *Application) Config() *config.Config

func (*Application) Configure

func (a *Application) Configure(name string, value interface{})

func (*Application) Register

func (a *Application) Register(provider foundation.Provider)

func (*Application) Terminate

func (a *Application) Terminate()

func (*Application) Version

func (a *Application) Version() string

type Config added in v0.2.0

type Config struct {
	Name     string
	Env      string
	Debug    bool
	Timezone string
	Locale   string
	Key      string
}

Config set to app

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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