utils

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Overview

Package request is used for internal. You should not depend on it directly, breaking changes can and will be introducted to it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMD5Base64

func GetMD5Base64(bytes []byte) (base64Value string)

GetMD5Base64 returns a string which has been base64 Deprecated: it was used for internal

func GetTimeInFormatISO8601

func GetTimeInFormatISO8601() (timeStr string)

GetTimeInFormatISO8601 returns a time string Deprecated: it was used for internal

func GetURLFormedMap

func GetURLFormedMap(source map[string]string) (urlEncoded string)

GetURLFormedMap returns a url encoded string Deprecated: it was used for internal

func GetUUID

func GetUUID() (uuidHex string)

GetUUID returns a uuid Deprecated: it was used for internal

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes returns a rand string

func Sha256WithRsa

func Sha256WithRsa(source, secret string) string

Sha256WithRsa return a string which has been hashed with Rsa Deprecated: it was used for internal

func ShaHmac1

func ShaHmac1(source, secret string) string

ShaHmac1 return a string which has been hashed Deprecated: it was used for internal

func Timeout

func Timeout(connectTimeout time.Duration) func(cxt context.Context, net, addr string) (c net.Conn, err error)

Timeout is for connect Timeout Deprecated: it was used for internal

Types

type Runtime

type Runtime struct {
	ReadTimeout    int
	ConnectTimeout int
	Proxy          string
	Host           string
	STSEndpoint    string
}

Runtime is for setting timeout, proxy and host Deprecated: it was used for internal

func NewRuntime

func NewRuntime(readTimeout, connectTimeout int, proxy string, host string) *Runtime

NewRuntime returns a Runtime Deprecated: it was used for internal

Jump to

Keyboard shortcuts

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