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 BaseServiceProvider ¶
type BaseServiceProvider struct{}
BaseServiceProvider is a default implementation of the Provider interface.
func (*BaseServiceProvider) Boot ¶
func (s *BaseServiceProvider) Boot(Application)
func (*BaseServiceProvider) Register ¶
func (s *BaseServiceProvider) Register(Application)
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
MakeSeeder() seeder.Facade
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)
}
Click to show internal directories.
Click to hide internal directories.