internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	ListenEngageCond(ctx context.Context, wg *sync.WaitGroup)
	ListenDismissCond(ctx context.Context, wg *sync.WaitGroup)
}

Controller 生产/消费/负载均衡worker的控制器,以下每个方法调用时都需要开启goroutine

type Worker

type Worker interface {
	Work(ctx context.Context)
	Stop()
}

Jump to

Keyboard shortcuts

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