Documentation ¶
Index ¶
- type App
- func (this *App) BootService(s iprovider.ServiceProvider)
- func (this *App) CallBootedCallbacks()
- func (this *App) CallBootingCallbacks()
- func (this *App) GetLoadedProviders() map[string]bool
- func (this *App) GetProviderName(provider any) (name string)
- func (this *App) GetRegister(p any) iprovider.ServiceProvider
- func (this *App) GetRootCmd() *command.Command
- func (this *App) GetSchedule() *schedule.Schedule
- func (this *App) IsDev() bool
- func (this *App) IsRunned() bool
- func (this *App) ProviderIsLoaded(provider string) bool
- func (this *App) Register(f func() iprovider.ServiceProvider) iprovider.ServiceProvider
- func (this *App) Registers(providers []func() iprovider.ServiceProvider)
- func (this *App) Run()
- func (this *App) RunningInConsole() bool
- func (this *App) WithBooted(f func())
- func (this *App) WithBooting(f func())
- func (this *App) WithConfig(conf *config.Config) *App
- func (this *App) WithNetListener(listener net.Listener) *App
- func (this *App) WithRootCmd(cmd *command.Command)
- func (this *App) WithRunningInConsole(console bool)
- func (this *App) WithSchedule(cron *schedule.Schedule)
- type ServiceProviderSchedule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
*
- App结构体 *
- @create 2021-6-19
- @author deatil
func (*App) GetLoadedProviders ¶ added in v1.0.1003
GetLoadedProviders
func (*App) GetProviderName ¶ added in v1.0.1003
反射获取服务提供者名称
func (*App) GetRegister ¶ added in v1.0.1003
func (this *App) GetRegister(p any) iprovider.ServiceProvider
获取注册的服务提供者
func (*App) ProviderIsLoaded ¶ added in v1.0.1003
ProviderIsLoaded
func (*App) Register ¶
func (this *App) Register(f func() iprovider.ServiceProvider) iprovider.ServiceProvider
注册服务提供者
func (*App) Registers ¶
func (this *App) Registers(providers []func() iprovider.ServiceProvider)
批量导入
type ServiceProviderSchedule ¶
计划任务接口
Click to show internal directories.
Click to hide internal directories.