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 provides service discovery functionality based on files that contain target groups in JSON or YAML format. Refreshing happens using file watches and periodic refreshes.
func NewDiscovery ¶
func NewDiscovery(conf *config.FileSDConfig, logger log.Logger) *Discovery
NewDiscovery returns a new file discovery for the given paths.
Click to show internal directories.
Click to hide internal directories.