clients

package
v1.1.12-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	AppName    string
	BaseURL    string
	HTTPClient *http.Client
}

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 interface{}, out interface{}) microappError.APIClientError

DoRequestWithResponseParam do request with response param

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL