utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt

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

func AESCBCEncrypt

func AESCBCEncrypt(content, key, iv []byte) ([]byte, error)

func HttpGet

func HttpGet(url string, timeout int) ([]byte, error)

func HttpPost

func HttpPost(url string, data interface{}, contentType string, timeout int32) ([]byte, error)

func HttpPut

func HttpPut(url string, data interface{}, contentType string, timeout int32) ([]byte, error)

func HttpRequest

func HttpRequest(method string, url string, data interface{}, contentType string, timeout int32) ([]byte, error)

func HttpUpload

func HttpUpload(url string, values map[string]io.Reader, token string, filename string, timeout int32) ([]byte, error)

func JsonDecoder

func JsonDecoder(payload []byte, v interface{}) error

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5Trimming

func PKCS5Trimming(encrypt []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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