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) DatabasePath(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) StoragePath(path string) 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() 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) 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.Engine
- func (c *Container) MakeSchedule() schedulecontract.Schedule
- func (c *Container) MakeStorage() filesystemcontract.Storage
- func (c *Container) MakeValidation() validationcontract.Validation
- 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 ¶ added in v1.10.2
func NewApplication() foundation.Application
Types ¶
type Application ¶
type Application struct { foundation.Container // contains filtered or unexported fields }
func (*Application) BasePath ¶ added in v1.10.2
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.10.2
func (app *Application) Commands(commands []consolecontract.Command)
func (*Application) ConfigPath ¶ added in v1.10.2
func (app *Application) ConfigPath(path string) string
func (*Application) DatabasePath ¶ added in v1.10.2
func (app *Application) DatabasePath(path string) string
func (*Application) Path ¶ added in v1.10.2
func (app *Application) Path(path string) string
func (*Application) PublicPath ¶ added in v1.10.2
func (app *Application) PublicPath(path string) string
func (*Application) Publishes ¶ added in v1.10.2
func (app *Application) Publishes(packageName string, paths map[string]string, groups ...string)
func (*Application) StoragePath ¶ added in v1.10.2
func (app *Application) StoragePath(path string) string
type Container ¶ added in v1.10.2
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶ added in v1.10.2
func NewContainer() *Container
func (*Container) Bind ¶ added in v1.10.2
func (c *Container) Bind(key any, callback func(app foundationcontract.Application) (any, error))
func (*Container) BindWith ¶ added in v1.10.2
func (c *Container) BindWith(key any, callback func(app foundationcontract.Application, parameters map[string]any) (any, error))
func (*Container) MakeArtisan ¶ added in v1.10.2
func (c *Container) MakeArtisan() consolecontract.Artisan
func (*Container) MakeAuth ¶ added in v1.10.2
func (c *Container) MakeAuth() authcontract.Auth
func (*Container) MakeCache ¶ added in v1.10.2
func (c *Container) MakeCache() cachecontract.Cache
func (*Container) MakeConfig ¶ added in v1.10.2
func (c *Container) MakeConfig() configcontract.Config
func (*Container) MakeCrypt ¶ added in v1.10.2
func (c *Container) MakeCrypt() cryptcontract.Crypt
func (*Container) MakeEvent ¶ added in v1.10.2
func (c *Container) MakeEvent() eventcontract.Instance
func (*Container) MakeGate ¶ added in v1.10.2
func (c *Container) MakeGate() accesscontract.Gate
func (*Container) MakeGrpc ¶ added in v1.10.2
func (c *Container) MakeGrpc() grpccontract.Grpc
func (*Container) MakeHash ¶ added in v1.10.2
func (c *Container) MakeHash() hashcontract.Hash
func (*Container) MakeLog ¶ added in v1.10.2
func (c *Container) MakeLog() logcontract.Log
func (*Container) MakeMail ¶ added in v1.10.2
func (c *Container) MakeMail() mailcontract.Mail
func (*Container) MakeOrm ¶ added in v1.10.2
func (c *Container) MakeOrm() ormcontract.Orm
func (*Container) MakeQueue ¶ added in v1.10.2
func (c *Container) MakeQueue() queuecontract.Queue
func (*Container) MakeRateLimiter ¶ added in v1.10.2
func (c *Container) MakeRateLimiter() httpcontract.RateLimiter
func (*Container) MakeRoute ¶ added in v1.10.2
func (c *Container) MakeRoute() routecontract.Engine
func (*Container) MakeSchedule ¶ added in v1.10.2
func (c *Container) MakeSchedule() schedulecontract.Schedule
func (*Container) MakeStorage ¶ added in v1.10.2
func (c *Container) MakeStorage() filesystemcontract.Storage
func (*Container) MakeValidation ¶ added in v1.10.2
func (c *Container) MakeValidation() validationcontract.Validation
func (*Container) Singleton ¶ added in v1.10.2
func (c *Container) Singleton(key any, callback func(app foundationcontract.Application) (any, error))
Click to show internal directories.
Click to hide internal directories.