michttp

package
v0.0.0-...-b66827d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Formaturl

func Formaturl(url string) string

func Getserverurl

func Getserverurl(servername string) string

func Http

func Http(keyName string, request MicHttpRequest, returnMap HttpResponseMap, wg *sync.WaitGroup)

Types

type HttpRequestMap

type HttpRequestMap map[string]MicHttpRequest

type HttpResponseMap

type HttpResponseMap map[string]interface{}

func RequesAll

func RequesAll(requestMap HttpRequestMap) HttpResponseMap

type MicHttpRequest

type MicHttpRequest struct {
	ServiceId string
	EndPoint  string
	Method    string
	Url       string
	Param     interface{}
	Header    map[string]string
	Timeout   time.Duration
}

func (*MicHttpRequest) GetRequesBytes

func (r *MicHttpRequest) GetRequesBytes() ([]byte, error)

func (*MicHttpRequest) GetRequesString

func (r *MicHttpRequest) GetRequesString() (string, error)

func (*MicHttpRequest) MicRequest

func (r *MicHttpRequest) MicRequest() (*httplib.HTTPRequest, error)

func (*MicHttpRequest) Request

func (r *MicHttpRequest) Request() *httplib.HTTPRequest

type Response

type Response struct {
	KeyName string
	Err     error
	Info    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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