Refactor: remove unused types

This commit is contained in:
Alexander Zobnin
2021-05-19 18:15:29 +03:00
parent 7d8005838c
commit b42d665e9e
6 changed files with 14 additions and 146 deletions

View File

@@ -36,18 +36,6 @@ type ZabbixAPIResourceRequest struct {
Params map[string]interface{} `json:"params,omitempty"`
}
type ZabbixAPIRequest struct {
Method string `json:"method"`
Params ZabbixAPIParams `json:"params,omitempty"`
}
func (r *ZabbixAPIRequest) String() string {
jsonRequest, _ := json.Marshal(r.Params)
return r.Method + string(jsonRequest)
}
type ZabbixAPIParams = map[string]interface{}
type ZabbixAPIResourceResponse struct {
Result interface{} `json:"result,omitempty"`
}