Documentation ¶
Index ¶
- type APIClient
- func (apiClient *APIClient) DoDelete(context microappCtx.ExecutionContext, requestString string, rawToken string, ...) error
- func (apiClient *APIClient) DoGet(context microappCtx.ExecutionContext, requestString string, rawToken string) (map[string]interface{}, error)
- func (apiClient *APIClient) DoGetList(context microappCtx.ExecutionContext, requestString string, rawToken string) ([]map[string]interface{}, error)
- func (apiClient *APIClient) DoPost(context microappCtx.ExecutionContext, requestString string, rawToken string, ...) (map[string]interface{}, error)
- func (apiClient *APIClient) DoRequestBasic(context microappCtx.ExecutionContext, url string, requestMethod string, ...) (*http.Response, microappError.APIClientError)
- func (apiClient *APIClient) DoRequestProxy(context microappCtx.ExecutionContext, r *http.Request, url string, ...) (*http.Response, microappError.APIClientError)
- func (apiClient *APIClient) DoRequestWithResponseParam(context microappCtx.ExecutionContext, url string, requestMethod string, ...) microappError.APIClientError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient represents the actual client calling microservice
func (*APIClient) DoDelete ¶ added in v0.0.79
func (apiClient *APIClient) DoDelete(context microappCtx.ExecutionContext, requestString string, rawToken string, payload map[string]interface{}) error
DoDelete is a generic method to carry out RESTful calls to the other external microservices in ISLA
func (*APIClient) DoGet ¶
func (apiClient *APIClient) DoGet(context microappCtx.ExecutionContext, requestString string, rawToken string) (map[string]interface{}, error)
DoGet is a generic method to carry out RESTful calls to the other external microservices in ISLA
func (*APIClient) DoGetList ¶
func (apiClient *APIClient) DoGetList(context microappCtx.ExecutionContext, requestString string, rawToken string) ([]map[string]interface{}, error)
DoGetList is a generic method to carry out RESTful calls to the other external microservices in ISLA
func (*APIClient) DoPost ¶
func (apiClient *APIClient) DoPost(context microappCtx.ExecutionContext, requestString string, rawToken string, payload map[string]interface{}) (map[string]interface{}, error)
DoPost is a generic method to carry out RESTful calls to the other external microservices in ISLA
func (*APIClient) DoRequestBasic ¶ added in v1.0.18
func (apiClient *APIClient) DoRequestBasic(context microappCtx.ExecutionContext, url string, requestMethod string, rawToken string, payload interface{}) (*http.Response, microappError.APIClientError)
DoRequestBasic ...
func (*APIClient) DoRequestProxy ¶ added in v1.0.18
func (apiClient *APIClient) DoRequestProxy(context microappCtx.ExecutionContext, r *http.Request, url string, rawToken string) (*http.Response, microappError.APIClientError)
DoRequestProxy do request with response param
func (*APIClient) DoRequestWithResponseParam ¶ added in v1.0.18
func (apiClient *APIClient) DoRequestWithResponseParam(context microappCtx.ExecutionContext, url string, requestMethod string, rawToken string, payload map[string]interface{}, out interface{}) microappError.APIClientError
DoRequestWithResponseParam do request with response param
Click to show internal directories.
Click to hide internal directories.