http

package
v0.0.0-...-bf09db0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(requestURL string, connectionConfig *env.ConnectConfig, callBack *CallBack) (interface{}, error)

Request 建立网络请求

func RequestRecovery

func RequestRecovery(appConfig *config.AppConfig,
	connectConfig *env.ConnectConfig,
	callBack *CallBack) (interface{}, error)

RequestRecovery 可以恢复的请求

Types

type CallBack

type CallBack struct {
	SuccessCallBack   func([]byte, CallBack) (interface{}, error)
	NotModifyCallBack func() error
	AppConfig         *config.AppConfig
	Namespace         string
}

CallBack 请求回调函数

Jump to

Keyboard shortcuts

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