Documentation ¶
Index ¶
- type App
- func (this *App) BootService(s UsedServiceProvider)
- func (this *App) CallBootedCallbacks()
- func (this *App) CallBootingCallbacks()
- func (this *App) GetRootCmd() *command.Command
- func (this *App) GetSchedule() *schedule.Schedule
- func (this *App) IsDev() bool
- func (this *App) Register(f ServiceProvider)
- func (this *App) Registers(providers ServiceProviders)
- func (this *App) Run()
- func (this *App) RunningInConsole() bool
- func (this *App) WithBooted(f BootedCallback)
- func (this *App) WithBooting(f BootingCallback)
- 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 BootedCallback
- type BootedCallbacks
- type BootingCallback
- type BootingCallbacks
- type ServiceProvider
- type ServiceProviderSchedule
- type ServiceProviders
- type UsedServiceProvider
- type UsedServiceProviders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // 锁 Lock *sync.RWMutex // 配置 Config *config.Config // 开发者模式 Dev bool // 服务提供者 ServiceProviders ServiceProviders // 已使用服务提供者 UsedServiceProviders UsedServiceProviders // 运行状态 Runned bool // 运行在命令行 RunInConsole bool // 路由 RouteEngine *router.Engine // 根脚本 RootCmd *command.Command // 计划任务 Schedule *schedule.Schedule // 启动前 BootingCallbacks BootingCallbacks // 启动后 BootedCallbacks BootedCallbacks // 自定义运行监听 NetListener net.Listener }
*
- App结构体 *
- @create 2021-6-19
- @author deatil
type ServiceProviderSchedule ¶
计划任务接口
Click to show internal directories.
Click to hide internal directories.