Documentation ¶
Index ¶
- Variables
- func NewApplication() foundation.Application
- type Application
- func (app *Application) BasePath(path ...string) string
- func (app *Application) Boot()
- func (app *Application) Commands(commands []consolecontract.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 foundationcontract.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() consolecontract.Artisan
- func (c *Container) MakeAuth(ctx httpcontract.Context) authcontract.Auth
- func (c *Container) MakeCache() cachecontract.Cache
- func (c *Container) MakeConfig() configcontract.Config
- func (c *Container) MakeCrypt() cryptcontract.Crypt
- func (c *Container) MakeEvent() eventcontract.Instance
- func (c *Container) MakeGate() accesscontract.Gate
- func (c *Container) MakeGrpc() grpccontract.Grpc
- func (c *Container) MakeHash() hashcontract.Hash
- func (c *Container) MakeLang(ctx context.Context) translationcontract.Translator
- func (c *Container) MakeLog() logcontract.Log
- func (c *Container) MakeMail() mailcontract.Mail
- func (c *Container) MakeOrm() ormcontract.Orm
- func (c *Container) MakeQueue() queuecontract.Queue
- func (c *Container) MakeRateLimiter() httpcontract.RateLimiter
- func (c *Container) MakeRoute() routecontract.Route
- func (c *Container) MakeSchedule() schedulecontract.Schedule
- func (c *Container) MakeSchema() migrationcontract.Schema
- func (c *Container) MakeSeeder() seerdercontract.Facade
- func (c *Container) MakeSession() sessioncontract.Manager
- func (c *Container) MakeStorage() filesystemcontract.Storage
- func (c *Container) MakeTesting() testingcontract.Testing
- func (c *Container) MakeValidation() validationcontract.Validation
- func (c *Container) MakeView() httpcontract.View
- func (c *Container) MakeWith(key any, parameters map[string]any) (any, error)
- func (c *Container) Singleton(key any, callback func(app foundationcontract.Application) (any, error))
Constants ¶
This section is empty.
Variables ¶
View Source
var (
App foundation.Application
)
Functions ¶
func NewApplication ¶
func NewApplication() foundation.Application
Types ¶
type Application ¶
type Application struct { foundation.Container // contains filtered or unexported fields }
func (*Application) BasePath ¶
func (app *Application) BasePath(path ...string) string
func (*Application) Boot ¶
func (app *Application) Boot()
Boot Register and bootstrap configured service providers.
func (*Application) Commands ¶
func (app *Application) Commands(commands []consolecontract.Command)
func (*Application) ConfigPath ¶
func (app *Application) ConfigPath(path ...string) string
func (*Application) CurrentLocale ¶
func (app *Application) CurrentLocale(ctx context.Context) string
func (*Application) DatabasePath ¶
func (app *Application) DatabasePath(path ...string) string
func (*Application) ExecutablePath ¶
func (app *Application) ExecutablePath(path ...string) string
func (*Application) GetJson ¶
func (app *Application) GetJson() foundation.Json
func (*Application) IsLocale ¶
func (app *Application) IsLocale(ctx context.Context, locale string) bool
func (*Application) LangPath ¶
func (app *Application) LangPath(path ...string) string
func (*Application) Path ¶
func (app *Application) Path(path ...string) string
func (*Application) PublicPath ¶
func (app *Application) PublicPath(path ...string) string
func (*Application) Publishes ¶
func (app *Application) Publishes(packageName string, paths map[string]string, groups ...string)
func (*Application) SetJson ¶
func (app *Application) SetJson(j foundation.Json)
func (*Application) StoragePath ¶
func (app *Application) StoragePath(path ...string) string
func (*Application) Version ¶
func (app *Application) Version() string
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer() *Container
func (*Container) Bind ¶
func (c *Container) Bind(key any, callback func(app foundationcontract.Application) (any, error))
func (*Container) BindWith ¶
func (c *Container) BindWith(key any, callback func(app foundationcontract.Application, parameters map[string]any) (any, error))
func (*Container) MakeArtisan ¶
func (c *Container) MakeArtisan() consolecontract.Artisan
func (*Container) MakeAuth ¶
func (c *Container) MakeAuth(ctx httpcontract.Context) authcontract.Auth
func (*Container) MakeCache ¶
func (c *Container) MakeCache() cachecontract.Cache
func (*Container) MakeConfig ¶
func (c *Container) MakeConfig() configcontract.Config
func (*Container) MakeCrypt ¶
func (c *Container) MakeCrypt() cryptcontract.Crypt
func (*Container) MakeEvent ¶
func (c *Container) MakeEvent() eventcontract.Instance
func (*Container) MakeGate ¶
func (c *Container) MakeGate() accesscontract.Gate
func (*Container) MakeGrpc ¶
func (c *Container) MakeGrpc() grpccontract.Grpc
func (*Container) MakeHash ¶
func (c *Container) MakeHash() hashcontract.Hash
func (*Container) MakeLang ¶
func (c *Container) MakeLang(ctx context.Context) translationcontract.Translator
func (*Container) MakeLog ¶
func (c *Container) MakeLog() logcontract.Log
func (*Container) MakeMail ¶
func (c *Container) MakeMail() mailcontract.Mail
func (*Container) MakeOrm ¶
func (c *Container) MakeOrm() ormcontract.Orm
func (*Container) MakeQueue ¶
func (c *Container) MakeQueue() queuecontract.Queue
func (*Container) MakeRateLimiter ¶
func (c *Container) MakeRateLimiter() httpcontract.RateLimiter
func (*Container) MakeRoute ¶
func (c *Container) MakeRoute() routecontract.Route
func (*Container) MakeSchedule ¶
func (c *Container) MakeSchedule() schedulecontract.Schedule
func (*Container) MakeSchema ¶
func (c *Container) MakeSchema() migrationcontract.Schema
func (*Container) MakeSeeder ¶
func (c *Container) MakeSeeder() seerdercontract.Facade
func (*Container) MakeSession ¶
func (c *Container) MakeSession() sessioncontract.Manager
func (*Container) MakeStorage ¶
func (c *Container) MakeStorage() filesystemcontract.Storage
func (*Container) MakeTesting ¶
func (c *Container) MakeTesting() testingcontract.Testing
func (*Container) MakeValidation ¶
func (c *Container) MakeValidation() validationcontract.Validation
func (*Container) MakeView ¶
func (c *Container) MakeView() httpcontract.View
func (*Container) Singleton ¶
func (c *Container) Singleton(key any, callback func(app foundationcontract.Application) (any, error))
Click to show internal directories.
Click to hide internal directories.