reorganize packages and add tests for zabbix datasource instance methods

This commit is contained in:
Alexander Zobnin
2020-06-04 11:43:20 +03:00
parent 4bebeb4919
commit 7990613e2c
13 changed files with 231 additions and 531 deletions

View File

@@ -81,6 +81,11 @@ func (api *ZabbixAPI) SetUrl(api_url string) error {
return nil
}
// GetAuth returns API authentication token
func (api *ZabbixAPI) GetAuth() string {
return api.auth
}
// SetAuth sets API authentication token
func (api *ZabbixAPI) SetAuth(auth string) {
api.auth = auth