clients

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 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

Jump to

Keyboard shortcuts

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