Note: This is the struct with your implementation of the Discoverer interface (see Run function). Discovery retrieves target information from a Consul server and updates them via watches.
| 87 | // Note: This is the struct with your implementation of the Discoverer interface (see Run function). |
| 88 | // Discovery retrieves target information from a Consul server and updates them via watches. |
| 89 | type discovery struct { |
| 90 | address string |
| 91 | refreshInterval int |
| 92 | tagSeparator string |
| 93 | logger *slog.Logger |
| 94 | oldSourceList map[string]bool |
| 95 | } |
| 96 | |
| 97 | func (*discovery) parseServiceNodes(resp *http.Response, name string) (*targetgroup.Group, error) { |
| 98 | var nodes []*CatalogService |
nothing calls this directly
no outgoing calls
no test coverage detected