circuitclient

package
v0.0.0-...-72f410e Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenerateName

func DefaultGenerateName(url string) string

func Delete

func Delete(c context.Context, name, uri string) (resp *http.Response, err error)

func Get

func Get(c context.Context, name, uri string) (resp *http.Response, err error)

Get to exec http.Get param context context of server param name hystrix Circuit name parem url url to get

func ParseToStr

func ParseToStr(mp map[string]string) string

ParseToStr parse map params to strings that can be added to url

func PostByte

func PostByte(c context.Context, name, uri string, data []byte) (resp *http.Response, err error)

func PostForm

func PostForm(c context.Context, name, uri string, param map[string]string) (resp *http.Response, err error)

func PostJson

func PostJson(c context.Context, name, uri string, param map[string]string) (resp *http.Response, err error)

func PutByte

func PutByte(c context.Context, name, uri string, data []byte) (resp *http.Response, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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