Files
Lukasz GutandGitHub 69c804be2c Refactor queueManager into generic queue.Queue (#1796)
* Refactor queueManager into generic queue.Queue

* Update CHANGELOG.md

* Create shared processFun method and a helper function for queue creation

* Remove returning error from ProcessFunc and update chan *request[T] to chan T.

* Fix unit tests

* Replace go.uber.org/atomic with sync/atomic

* Remove redundant accessor

* Fix processFunc definition

* Add breaking change to CHANGELOG.md

* Define metrics on the package level to overcome Prometheus DefaultRegistry limitations

* Fix tests in queue_test.go

* Deprecate generatorForwarder metrics in favor of queue.Queue metrics
2022-10-14 13:37:28 +02:00

9 lines
112 B
Go

package queue
type Config struct {
Name string
TenantID string
Size int
WorkerCount int
}