application

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IApplication

type IApplication interface {
	Start() error    // 启动
	Shutdown() error // 关闭
}

IApplication 应用约定

type IManager added in v1.2.0

type IManager interface {
	// Register 注册应用
	Register(app IApplication)
	// Run 启动应用
	Run()
}

func NewManager

func NewManager(opts ...interface{}) IManager

NewManager 创建 APP 管理器 opts 支持设置日志、注册应用 日志必须实现了 xlog.XLog 接口 注册应用必须实现了 IApplication 接口

Jump to

Keyboard shortcuts

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