shared/api/rest/innerServiceCommunicator.go
Method communicator.PostMessage
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *communicator) PostMessage(endpoint string, query interface{}, response interface{}, params ...*meta.RequestParams) error {
url := fmt.Sprintf(c.endpointFormat, endpoint)
body, err := json.Marshal(query); if err != nil {
return err
}
Method communicator.GetMessage
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *communicator) GetMessage(endpoint string, response interface{}, params ...*meta.RequestParams) error {
url := fmt.Sprintf(c.endpointFormat, endpoint)
req, err := http.NewRequest("GET", url, nil); if err != nil {
return err
}