Documentation ¶
Overview ¶
Package dbworker receiver mongodb access request, and processed by one or more worker goroutines. Provide features such as:
monitor db load, by monitor db request queue length put slow db operation to specific queue, do not put too much pressure on database better handling database fatal error, such as database shutdown
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker maintains a mongodb work queue
Click to show internal directories.
Click to hide internal directories.