interfaces

package
v1.0.1006 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	// 注册服务提供者
	Register(func() iprovider.ServiceProvider) iprovider.ServiceProvider

	// 批量注册服务提供者
	Registers([]func() iprovider.ServiceProvider)

	// 获取
	GetRegister(any) iprovider.ServiceProvider

	// 反射获取服务提供者名称
	GetProviderName(any) string

	// GetLoadedProviders
	GetLoadedProviders() map[string]bool

	// ProviderIsLoaded
	ProviderIsLoaded(string) bool

	// 脚本
	WithRootCmd(*command.Command)

	// 设置启动前函数
	WithBooting(func())

	// 设置启动后函数
	WithBooted(func())

	// 获取脚本
	GetRootCmd() *command.Command

	// 获取计划任务
	GetSchedule() *schedule.Schedule

	// 命令行状态
	WithRunningInConsole(bool)

	// 获取命令行状态
	RunningInConsole() bool

	// 是否为已运行
	IsRunned() bool

	// 是否为开发者模式
	IsDev() bool
}

*

  • App 接口 *
  • @create 2021-6-19
  • @author deatil

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL