client

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 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 map[string]string, files []grequests.FileUpload) (string, error)

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 Get

func Get(service string, uri string, params map[string]string) (string, error)

func GetJson

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

func GetWithHeader

func GetWithHeader(service string, uri string, params map[string]string, header map[string]string) (string, error)

func JsonWithHeader

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

func PostJson

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

func RestfulWithHeader

func RestfulWithHeader(method, service string, uri string, pathparams map[string]string, header map[string]string, 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