package
0.0.0-20240712215146-12f676e2e164
Repository: https://github.com/raflfaisal/golangcore.git
Documentation: pkg.go.dev
# Functions
NewDispatcher creates a new dispatcher with a buffered channel and a wait group.
NewWorkerPool creates an instance of WorkerPool.
# Variables
ReqHandler is a map of request handlers, keyed by request type.
# Interfaces
Dispatcher is an interface for managing the worker pool.
WorkerLauncher is an interface for launching workers.
WorkerPool defines the contract for a worker pool implementation.
# Type aliases
RequestHandler defines a function type for handling requests.