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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceProvider

type ServiceProvider interface {
	// 设置 App
	WithApp(any)

	// 设置路由
	WithRoute(*router.Engine)

	// 获取
	GetRoute() *router.Engine

	// 注册
	Register()

	// 引导
	Boot()

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

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

	// 启动前回调
	CallBootingCallback()

	// 启动后回调
	CallBootedCallback()
}

*

  • 服务提供者接口 *
  • @create 2021-6-19
  • @author deatil

Jump to

Keyboard shortcuts

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