module

package
v0.0.0-...-ee7ecfe Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

定义了模块的接口

封装了模块拔插式的操作

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(mods ...Imodule)

运行模块

Types

type Imodule

type Imodule interface {
	OnInit()               // 模块的初始化
	OnDestroy()            // 模块的销毁
	Run(ChClose chan bool) // 以插件化的方式运行模块
}

Jump to

Keyboard shortcuts

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