(host string)
| 49 | } |
| 50 | |
| 51 | func newClient(host string) *client { |
| 52 | if host == "" { |
| 53 | host = defaultHost |
| 54 | } |
| 55 | restyCli := resty.New().SetBaseURL(host + apiVersionV1) |
| 56 | return &client{ |
| 57 | restyCli: restyCli, |
| 58 | host: host, |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func unmarshalData(body []byte, v any) error { |
| 63 | if len(body) == 0 { |
no outgoing calls
no test coverage detected