http

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

*

  • @Time : 2020/12/18 2:29 下午
  • @Author : MassAdobe
  • @Description: http

*

*

  • @Time : 2020/12/18 3:00 下午
  • @Author : MassAdobe
  • @Description: http

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ipPort, url string, params interface{}, c ...*gin.Context) ([]byte, error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 3:13 下午
  • @Description: Delete请求

*

func Get

func Get(ipPort, url string, params interface{}, c ...*gin.Context) ([]byte, error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 3:12 下午
  • @Description: Get请求

*

func Post

func Post(ipPort, url, params interface{}, c ...*gin.Context) ([]byte, error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 3:09 下午
  • @Description: Post请求

*

func Put

func Put(ipPort, url string, params interface{}, c ...*gin.Context) ([]byte, error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 3:13 下午
  • @Description: Put请求

*

Types

type FeignRequest

type FeignRequest struct {
	Body       interface{}        // 请求参数,可以为空
	ServerName string             // 服务名,不能为空
	GroupName  string             // 组别名,不能为空
	Url        string             // 调用URL(二级路径)
	C          *goContext.Context // 当前请求的上下文
}

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 2:30 下午
  • @Description: 服务内部调用get请求结构体

*

func (*FeignRequest) FeignDelete

func (this *FeignRequest) FeignDelete() (feign []byte, err error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 5:21 下午
  • @Description: 服务内部调用Delete请求

*

func (*FeignRequest) FeignGet

func (this *FeignRequest) FeignGet() (feign []byte, err error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 2:30 下午
  • @Description: 服务内部调用get请求

*

func (*FeignRequest) FeignPost

func (this *FeignRequest) FeignPost() (feign []byte, err error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 2:30 下午
  • @Description: 服务内部调用post请求

*

func (*FeignRequest) FeignPut

func (this *FeignRequest) FeignPut() (feign []byte, err error)

*

  • @Author: MassAdobe
  • @TIME: 2020/12/18 5:21 下午
  • @Description: 服务内部调用put请求

*

Jump to

Keyboard shortcuts

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