foundation

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 18 Imported by: 75

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Container
	Boot()
	Commands([]console.Command)
	Path(path string) string
	BasePath(path string) string
	ConfigPath(path string) string
	DatabasePath(path string) string
	StoragePath(path string) string
	PublicPath(path string) string
	Publishes(packageName string, paths map[string]string, groups ...string)
}

type Container

type Container interface {
	Bind(key any, callback func(app Application) (any, error))
	BindWith(key any, callback func(app Application, parameters map[string]any) (any, error))
	Instance(key, instance any)
	Make(key any) (any, error)
	MakeArtisan() console.Artisan
	MakeAuth() auth.Auth
	MakeCache() cache.Cache
	MakeConfig() config.Config
	MakeCrypt() crypt.Crypt
	MakeEvent() event.Instance
	MakeGate() access.Gate
	MakeGrpc() grpc.Grpc
	MakeHash() hash.Hash
	MakeLog() log.Log
	MakeMail() mail.Mail
	MakeOrm() orm.Orm
	MakeQueue() queue.Queue
	MakeRateLimiter() http.RateLimiter
	MakeRoute() route.Engine
	MakeSchedule() schedule.Schedule
	MakeStorage() filesystem.Storage
	MakeValidation() validation.Validation
	MakeWith(key any, parameters map[string]any) (any, error)
	Singleton(key any, callback func(app Application) (any, error))
}

type ServiceProvider

type ServiceProvider interface {
	//Register any application services.
	Register(app Application)
	//Boot any application services after register.
	Boot(app Application)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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