http

package
v0.0.0-...-59e6379 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConsul

func RegisterConsul(name, address string, port int, consul string) bool

Types

type HTTPResponse

type HTTPResponse struct {
	Body    []byte
	Headers []Header
}

func Do

func Do(method, url string, headers []Header, body string, query ...interface{}) (*HTTPResponse, error)

func (HTTPResponse) Fill

func (r HTTPResponse) Fill(obj interface{})

func (HTTPResponse) String

func (r HTTPResponse) String() string
type Header struct {
	K, V string
}

Jump to

Keyboard shortcuts

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