Documentation ¶
Index ¶
- func AssembleUrl(service, path string) string
- func ConvertServiceToUrl(address string) string
- func Delete(url string, headers map[string]string, params ...interface{}) (*httpclient.Response, error)
- func DeleteFeign(opt Options, path string, params ...interface{}) (string, error)
- func Get(url string, headers map[string]string) (*httpclient.Response, error)
- func GetFeign(opt Options, path string) (string, error)
- func GetServiceAddr(r registry.Registry, serviceName string) (string, error)
- func NewClient() *httpclient.HttpClient
- func Post(url string, param url.Values, headers map[string]string) (*httpclient.Response, error)
- func PostFeign(opt Options, path string, param url.Values) (string, error)
- func PostJson(url string, data interface{}, headers map[string]string) (*httpclient.Response, error)
- func PostJsonFeign(opt Options, path string, data interface{}) (string, error)
- func PutJson(url string, data interface{}, headers map[string]string) (*httpclient.Response, error)
- func PutJsonFeign(opt Options, path string, data interface{}) (string, error)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(url string, headers map[string]string, params ...interface{}) (*httpclient.Response, error)
普通
func DeleteFeign ¶
获取服务 DELETE
func GetServiceAddr ¶
获取服务
func PostJson ¶
func PostJson(url string, data interface{}, headers map[string]string) (*httpclient.Response, error)
普通
func PostJsonFeign ¶
获取服务 POSTJSON
Types ¶
Click to show internal directories.
Click to hide internal directories.