ApiClient is designed for simple api requests
| 56 | |
| 57 | // ApiClient is designed for simple api requests |
| 58 | type ApiClient struct { |
| 59 | client *http.Client |
| 60 | endpoint string |
| 61 | headers map[string]string |
| 62 | data map[string]interface{} |
| 63 | data_mutex sync.Mutex |
| 64 | |
| 65 | authFunc plugin.ApiClientBeforeRequest |
| 66 | beforeRequest plugin.ApiClientBeforeRequest |
| 67 | afterResponse plugin.ApiClientAfterResponse |
| 68 | ctx gocontext.Context |
| 69 | logger log.Logger |
| 70 | } |
| 71 | |
| 72 | // NewApiClientFromConnection creates ApiClient based on given connection. |
| 73 | func NewApiClientFromConnection( |
nothing calls this directly
no outgoing calls
no test coverage detected