client

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nacos = &mginClient{}

Functions

func CallWithFiles

func CallWithFiles(service string, uri string, params interface{}, files []grequests.FileUpload) (string, error)

func CallWithFilesHeader

func CallWithFilesHeader(service string, uri string, params interface{}, files []grequests.FileUpload, header interface{}) (string, error)

微服务调用其他服务的接口,带文件

func CallWithHeader

func CallWithHeader(service string, uri string, params, header interface{}) (string, error)

微服务调用其他服务的接口,带header

func Get

func Get(service string, uri string, params interface{}) (string, error)

func GetJson

func GetJson(service, uri string, body interface{}, query interface{}) (string, error)

func GetWithHeader

func GetWithHeader(service string, uri string, params, header interface{}) (string, error)

func JsonWithHeader

func JsonWithHeader(method, service, uri string, header, body, query interface{}) (string, error)

func PostJson

func PostJson(service, uri string, body interface{}, query interface{}) (string, error)

func RestfulWithHeader

func RestfulWithHeader(method, service string, uri string, pathparams, queryparams, header, body interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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