http

package
v0.0.0-...-9ce3a7f Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, params map[string]string) (*resty.Response, error)

func GetHttpClient

func GetHttpClient() *http.Client

func Init

func Init()

func MonitorMsg

func MonitorMsg(murl, loc, msg string) error

func Post

func Post(url string, params map[string]string, data interface{}) (*resty.Response, error)

func PostNotParseBody

func PostNotParseBody(url string, params map[string]string, data interface{}) (*resty.Response, error)

Types

type LogForResty

type LogForResty struct{}
var LFR LogForResty

内部Resty日志

func (LogForResty) Debugf

func (l LogForResty) Debugf(format string, v ...interface{})

func (LogForResty) Errorf

func (l LogForResty) Errorf(format string, v ...interface{})

func (LogForResty) Warnf

func (l LogForResty) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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