Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer interface { // RegionDataChan returns channel streaming data regarding updates of set of instances. RegionDataChan() <-chan RegionData // InstanceStatuses returns channel streaming data regarding updates of statuses on instances. // Useful for checking health of the worker. InstanceStatuses() <-chan WorkerInstanceStatus Run(ctx context.Context) error }
func New ¶
func New(deps Deps) Discoverer
type RegionData ¶
type RegionData struct { RegionId db.RegionId Instances []WorkerInstance }
type WorkerInstance ¶
type WorkerInstance struct {
Ip string
}
type WorkerInstanceStatus ¶
func (*WorkerInstanceStatus) IsRunning ¶
func (w *WorkerInstanceStatus) IsRunning() bool
Click to show internal directories.
Click to hide internal directories.