stub

package
v0.0.0-...-63bff7e Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleInternal

type ModuleInternal interface {
	module.Module
	// IncrCalledCount 会把调用计数增1。
	IncrCalledCount()
	// IncrAcceptedCount 会把接受计数增1。
	IncrAcceptedCount()
	// IncrCompletedCount 会把成功完成计数增1。
	IncrCompletedCount()
	// IncrHandlingNumber 会把实时处理数增1。
	IncrHandlingNumber()
	// DecrHandlingNumber 会把实时处理数减1。
	DecrHandlingNumber()
	// Clear 用于清空所有计数。
	Clear()
}

ModuleInternal 代表组件的内部基础接口类型。

func NewModuleInternal

func NewModuleInternal(
	mid module.MID,
	scoreCalculator module.CalculateScore) (ModuleInternal, error)

NewModuleInternal 用于创建一个组件内部基础类型的实例。

Jump to

Keyboard shortcuts

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