tidy modules

This commit is contained in:
Alexander Zobnin
2020-06-04 11:51:05 +03:00
parent 9713e7d780
commit 89dfb1e228
3 changed files with 22 additions and 41 deletions

View File

@@ -1,15 +0,0 @@
package zabbixapi
import "encoding/json"
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{}