Documentation
¶
Index ¶
- Variables
- func NewApplication() foundation.Application
- type Application
- func (app *Application) About(section string, items []foundation.AboutItem)
- func (app *Application) BasePath(path ...string) string
- func (app *Application) Boot()
- func (app *Application) Commands(commands []contractsconsole.Command)
- func (app *Application) ConfigPath(path ...string) string
- func (app *Application) CurrentLocale(ctx context.Context) string
- func (app *Application) DatabasePath(path ...string) string
- func (app *Application) ExecutablePath(path ...string) string
- func (app *Application) GetJson() foundation.Json
- func (app *Application) IsLocale(ctx context.Context, locale string) bool
- func (app *Application) LangPath(path ...string) string
- func (app *Application) Path(path ...string) string
- func (app *Application) PublicPath(path ...string) string
- func (app *Application) Publishes(packageName string, paths map[string]string, groups ...string)
- func (app *Application) SetJson(j foundation.Json)
- func (app *Application) SetLocale(ctx context.Context, locale string) context.Context
- func (app *Application) StoragePath(path ...string) string
- func (app *Application) Version() string
- type Container
- func (c *Container) Bind(key any, callback func(app contractsfoundation.Application) (any, error))
- func (c *Container) BindWith(key any, ...)
- func (c *Container) Instance(key any, ins any)
- func (c *Container) Make(key any) (any, error)
- func (c *Container) MakeArtisan() contractsconsole.Artisan
- func (c *Container) MakeAuth(ctx contractshttp.Context) contractsauth.Auth
- func (c *Container) MakeCache() contractscache.Cache
- func (c *Container) MakeConfig() contractsconfig.Config
- func (c *Container) MakeCrypt() contractscrypt.Crypt
- func (c *Container) MakeEvent() contractsevent.Instance
- func (c *Container) MakeGate() contractsaccess.Gate
- func (c *Container) MakeGrpc() contractsgrpc.Grpc
- func (c *Container) MakeHash() contractshash.Hash
- func (c *Container) MakeLang(ctx context.Context) contractstranslation.Translator
- func (c *Container) MakeLog() contractslog.Log
- func (c *Container) MakeMail() contractsmail.Mail
- func (c *Container) MakeOrm() contractsorm.Orm
- func (c *Container) MakeQueue() contractsqueue.Queue
- func (c *Container) MakeRateLimiter() contractshttp.RateLimiter
- func (c *Container) MakeRoute() contractsroute.Route
- func (c *Container) MakeSchedule() contractsschedule.Schedule
- func (c *Container) MakeSchema() contractsmigration.Schema
- func (c *Container) MakeSeeder() contractsseerder.Facade
- func (c *Container) MakeSession() contractsession.Manager
- func (c *Container) MakeStorage() contractsfilesystem.Storage
- func (c *Container) MakeTesting() contractstesting.Testing
- func (c *Container) MakeValidation() contractsvalidation.Validation
- func (c *Container) MakeView() contractshttp.View
- func (c *Container) MakeWith(key any, parameters map[string]any) (any, error)
- func (c *Container) Refresh(key any)
- func (c *Container) Singleton(key any, callback func(app contractsfoundation.Application) (any, error))
Constants ¶
This section is empty.
Variables ¶
View Source
var (
App foundation.Application
)
Functions ¶
func NewApplication ¶ added in v1.12.0
func NewApplication() foundation.Application
Types ¶
type Application ¶
type Application struct { *Container // contains filtered or unexported fields }
func (*Application) About ¶ added in v1.15.0
func (app *Application) About(section string, items []foundation.AboutItem)
func (*Application) BasePath ¶ added in v1.12.0
func (app *Application) BasePath(path ...string) string
func (*Application) Boot ¶
func (app *Application) Boot()
Boot Register and bootstrap configured service providers.
func (*Application) Commands ¶ added in v1.12.0
func (app *Application) Commands(commands []contractsconsole.Command)
func (*Application) ConfigPath ¶ added in v1.12.0
func (app *Application) ConfigPath(path ...string) string
func (*Application) CurrentLocale ¶ added in v1.14.0
func (app *Application) CurrentLocale(ctx context.Context) string
func (*Application) DatabasePath ¶ added in v1.12.0
func (app *Application) DatabasePath(path ...string) string
func (*Application) ExecutablePath ¶ added in v1.14.0
func (app *Application) ExecutablePath(path ...string) string
func (*Application) GetJson ¶ added in v1.14.0
func (app *Application) GetJson() foundation.Json
func (*Application) IsLocale ¶ added in v1.14.0
func (app *Application) IsLocale(ctx context.Context, locale string) bool
func (*Application) LangPath ¶ added in v1.14.0
func (app *Application) LangPath(path ...string) string
func (*Application) Path ¶ added in v1.12.0
func (app *Application) Path(path ...string) string
func (*Application) PublicPath ¶ added in v1.12.0
func (app *Application) PublicPath(path ...string) string
func (*Application) Publishes ¶ added in v1.12.0
func (app *Application) Publishes(packageName string, paths map[string]string, groups ...string)
func (*Application) SetJson ¶ added in v1.14.0
func (app *Application) SetJson(j foundation.Json)
func (*Application) StoragePath ¶ added in v1.12.0
func (app *Application) StoragePath(path ...string) string
func (*Application) Version ¶ added in v1.14.0
func (app *Application) Version() string
type Container ¶ added in v1.12.0
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶ added in v1.12.0
func NewContainer() *Container
func (*Container) Bind ¶ added in v1.12.0
func (c *Container) Bind(key any, callback func(app contractsfoundation.Application) (any, error))
func (*Container) BindWith ¶ added in v1.12.0
func (c *Container) BindWith(key any, callback func(app contractsfoundation.Application, parameters map[string]any) (any, error))
func (*Container) MakeArtisan ¶ added in v1.12.0
func (c *Container) MakeArtisan() contractsconsole.Artisan
func (*Container) MakeAuth ¶ added in v1.12.0
func (c *Container) MakeAuth(ctx contractshttp.Context) contractsauth.Auth
func (*Container) MakeCache ¶ added in v1.12.0
func (c *Container) MakeCache() contractscache.Cache
func (*Container) MakeConfig ¶ added in v1.12.0
func (c *Container) MakeConfig() contractsconfig.Config
func (*Container) MakeCrypt ¶ added in v1.12.0
func (c *Container) MakeCrypt() contractscrypt.Crypt
func (*Container) MakeEvent ¶ added in v1.12.0
func (c *Container) MakeEvent() contractsevent.Instance
func (*Container) MakeGate ¶ added in v1.12.0
func (c *Container) MakeGate() contractsaccess.Gate
func (*Container) MakeGrpc ¶ added in v1.12.0
func (c *Container) MakeGrpc() contractsgrpc.Grpc
func (*Container) MakeHash ¶ added in v1.12.0
func (c *Container) MakeHash() contractshash.Hash
func (*Container) MakeLang ¶ added in v1.14.0
func (c *Container) MakeLang(ctx context.Context) contractstranslation.Translator
func (*Container) MakeLog ¶ added in v1.12.0
func (c *Container) MakeLog() contractslog.Log
func (*Container) MakeMail ¶ added in v1.12.0
func (c *Container) MakeMail() contractsmail.Mail
func (*Container) MakeOrm ¶ added in v1.12.0
func (c *Container) MakeOrm() contractsorm.Orm
func (*Container) MakeQueue ¶ added in v1.12.0
func (c *Container) MakeQueue() contractsqueue.Queue
func (*Container) MakeRateLimiter ¶ added in v1.12.0
func (c *Container) MakeRateLimiter() contractshttp.RateLimiter
func (*Container) MakeRoute ¶ added in v1.12.0
func (c *Container) MakeRoute() contractsroute.Route
func (*Container) MakeSchedule ¶ added in v1.12.0
func (c *Container) MakeSchedule() contractsschedule.Schedule
func (*Container) MakeSchema ¶ added in v1.15.0
func (c *Container) MakeSchema() contractsmigration.Schema
func (*Container) MakeSeeder ¶ added in v1.12.6
func (c *Container) MakeSeeder() contractsseerder.Facade
func (*Container) MakeSession ¶ added in v1.14.0
func (c *Container) MakeSession() contractsession.Manager
func (*Container) MakeStorage ¶ added in v1.12.0
func (c *Container) MakeStorage() contractsfilesystem.Storage
func (*Container) MakeTesting ¶ added in v1.13.0
func (c *Container) MakeTesting() contractstesting.Testing
func (*Container) MakeValidation ¶ added in v1.12.0
func (c *Container) MakeValidation() contractsvalidation.Validation
func (*Container) MakeView ¶ added in v1.13.1
func (c *Container) MakeView() contractshttp.View
func (*Container) Singleton ¶ added in v1.12.0
func (c *Container) Singleton(key any, callback func(app contractsfoundation.Application) (any, error))
Click to show internal directories.
Click to hide internal directories.