Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery implements the Discoverer interface.
func NewDiscovery ¶
func NewDiscovery(l logrus.FieldLogger, mech string, interval time.Duration, refreshf func(ctx context.Context) ([]*targetgroup.Group, error)) *Discovery
NewDiscovery returns a Discoverer function that calls a refresh() function at every interval.
Click to show internal directories.
Click to hide internal directories.