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 用于创建一个组件内部基础类型的实例。
Click to show internal directories.
Click to hide internal directories.