Discover Packages
github.com/dalmarcogd/go-worker-pool
package
module
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Apr 28, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
gwp
This package wants to offer the community and implement workers with the pure Go code for Golangers, without any other dependency just Uuid. It allows you to expose an http server to answer the response of health checks, stats, debug pprof and the main "workers". Workers for consumer queues, channel processes and other things that you think worker needs.
Prerequisites
Golang version >= 1.14
Features
Setup http server to monitoring yours;
/stats with workers, showing statuses her, number of goroutines, number of cpus and more;
/health-check that look for status of workers;
/debug/pprof expose all endpoints of investivate golang runtime http ;
Allow multiple concurrencies of work, handle errors and restart always worker;
Documentation
TODO
Examples
Expand ▾
Collapse ▴
Documentation
¶
New build an #workerServer with #defaultConfig
func NewWithConfig(configs map[string ]interface{}) *workerServer
NewWithConfig build an #workerServer by the settings
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.