Add channel
This commit is contained in:
parent
cf04392b13
commit
8d5586558c
1 changed files with 4 additions and 3 deletions
|
@ -18,9 +18,10 @@ import (
|
||||||
|
|
||||||
// Client struct is a PI-Hole client to request an instance of a PI-Hole ad blocker.
|
// Client struct is a PI-Hole client to request an instance of a PI-Hole ad blocker.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
httpClient http.Client
|
httpClient http.Client
|
||||||
interval time.Duration
|
interval time.Duration
|
||||||
config *config.Config
|
config *config.Config
|
||||||
|
MetricRetrieved chan bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewClient method initializes a new PI-Hole client.
|
// NewClient method initializes a new PI-Hole client.
|
||||||
|
|
Loading…
Reference in a new issue