Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNodesEmpty = errors.New("worker nodes empty in current env")
)
Functions ¶
This section is empty.
Types ¶
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func Instance ¶
func Instance() *WorkerPool
func (*WorkerPool) Heartbeat ¶
func (w *WorkerPool) Heartbeat(params view.WorkerHeartbeat)
func (*WorkerPool) Init ¶
func (w *WorkerPool) Init(option Option)
func (*WorkerPool) Select ¶
func (w *WorkerPool) Select(zoneCode string) (node db.WorkerNode, err error)
Click to show internal directories.
Click to hide internal directories.