Documentation ¶
Index ¶
- Variables
- func ClearOrmCache(ctx context.Context, key string)
- func GetConfig(v ...interface{}) string
- func GetMySQLVersion() string
- func GetProxy(ctx context.Context) func(*http.Request) (*url.URL, error)
- func GetProxyTransport(ctx context.Context) *http.Transport
- func GetValueOrDefault(value interface{}) bool
- func GetVersions(name string) interface{}
- func HttpDownloadFile(ctx context.Context, fileURL string, useProxy ...bool) []byte
- func HttpGet(ctx context.Context, url string, header map[string]string, data interface{}, ...) error
- func HttpPost(ctx context.Context, url string, header map[string]string, ...) error
- func HttpPostResult(ctx context.Context, url string, header map[string]string, ...) (res interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProxyOpen bool
View Source
var ProxyURL string
Functions ¶
func GetMySQLVersion ¶ added in v1.1.6
func GetMySQLVersion() string
GetMySQLVersion
@Description: 获取mysql版本 @return string
func GetValueOrDefault ¶ added in v1.1.6
func GetValueOrDefault(value interface{}) bool
GetValueOrDefault
@Description: 给定一个interface,如果是nil或空,则返回false @param value @param defaultValue @return interface{}
func HttpDownloadFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.