Refactor: zabbix client

This commit is contained in:
Alexander Zobnin
2021-05-19 13:17:46 +03:00
parent 762ea252b2
commit badecc3aae
14 changed files with 705 additions and 371 deletions

View File

@@ -19,6 +19,7 @@ var (
ErrNotAuthenticated = errors.New("zabbix api: not authenticated")
)
// ZabbixAPI is a simple client responsible for making request to Zabbix API
type ZabbixAPI struct {
url *url.URL
httpClient *http.Client