util

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES128Decrypt

func AES128Decrypt(crypted, key, iv []byte) ([]byte, error)

func AES128Encrypt

func AES128Encrypt(origData, key, iv []byte) ([]byte, error)

func GenJsonLog

func GenJsonLog(i interface{}) string

func GenParamErrorResp

func GenParamErrorResp() *model.BaseResp

func GenSuccessBaseResp

func GenSuccessBaseResp() *model.BaseResp

Types

type HttpClient

type HttpClient struct {
	Client *http.Client
}

func GetHttpClient

func GetHttpClient() *HttpClient

func (*HttpClient) HttpGet

func (h *HttpClient) HttpGet(ctx context.Context, url string, headerMap map[string]string) (*http.Response, error)

Jump to

Keyboard shortcuts

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