Documentation ¶
Index ¶
- Variables
- func CallWithFiles(service string, uri string, params map[string]string, ...) (string, error)
- func CallWithFilesHeader(service string, uri string, params map[string]string, ...) (string, error)
- func CallWithHeader(service string, uri string, params map[string]string, header map[string]string) (string, error)
- func Get(service string, uri string, params map[string]string) (string, error)
- func GetJson(service, uri string, body interface{}, query map[string]string) (string, error)
- func GetWithHeader(service string, uri string, params map[string]string, header map[string]string) (string, error)
- func JsonWithHeader(method, service, uri string, header map[string]string, body interface{}, ...) (string, error)
- func PostJson(service, uri string, body interface{}, query map[string]string) (string, error)
- func RestfulWithHeader(method, service string, uri string, pathparams map[string]string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Nacos = &mginClient{}
Functions ¶
func CallWithFiles ¶
func CallWithFilesHeader ¶
func CallWithFilesHeader(service string, uri string, params map[string]string, files []grequests.FileUpload, header map[string]string) (string, error)
微服务调用其他服务的接口,带文件
func CallWithHeader ¶
func CallWithHeader(service string, uri string, params map[string]string, header map[string]string) (string, error)
微服务调用其他服务的接口,带header
func GetWithHeader ¶
func JsonWithHeader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.