caller

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCall

func MakeCall(method, URI string, msg io.Reader, header map[string]string) (map[string]interface{}, errs.Error)

MakeCall to http client

func UnMarshalRequest

func UnMarshalRequest(req interface{}) ([]byte, error)

UnMarshalRequest to byte array

Types

type HttpCall

type HttpCall struct {
	Method     string
	URL        string
	Header     map[string]string
	ReturnHead bool
	ReturnKeys []string
}

HttpCall data store

func New

func New(method, url string, header map[string]string, returnHead bool) *HttpCall

New HttpCall

func (*HttpCall) HttpCall

func (h *HttpCall) HttpCall(data io.Reader) (map[string]interface{}, errs.Error)

HttpCall method on HttpCall object, pass in reader

Jump to

Keyboard shortcuts

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