//
pkg.gl
Category
github.com/packtpublishing/go-cookbook
Chapter09
pool
package
0.0.0-20230130100827-6c64ebff31b2
Repository:
https://github.com/packtpublishing/go-cookbook.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
0
Files
76 SLOC
#
Packages
example
No description provided by the author
#
Functions
Dispatch
Dispatch creates numWorker workers, returns a cancel functionand channels for adding work and responses, cancel must be called.
Process
Process dispatches work to the worker pool channel.
Worker
Worker loops forever and is part of the worker pool.
#
Constants
Compare
Compare is bcrypt compare work.
Hash
Hash is the bcrypt work type.
#
Structs
WorkRequest
WorkRequest is a worker req.
WorkResponse
WorkResponse is a worker resp.