javascript_helper

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyCryptoMD5    = "md5"
	KeyCryptoSHA1   = "sha1"
	KeyCryptoSHA256 = "sha256"
	KeyCryptoSHA512 = "sha512"
)
View Source
const (
	KeyMcUtils = "mcUtils"
)

Variables

This section is empty.

Functions

func GetHelperUtils

func GetHelperUtils() map[string]interface{}

includes helper functions

Types

type Convert

type Convert struct {
}

func (*Convert) HexStringToBytes

func (ll *Convert) HexStringToBytes(data string) []byte

returns bytes from hex string

func (*Convert) HexStringToString

func (ll *Convert) HexStringToString(data string) string

returns string from hex string

func (*Convert) ToBytes

func (ll *Convert) ToBytes(data string) []byte

returns string to byte

func (*Convert) ToHexString

func (ll *Convert) ToHexString(data interface{}) string

returns anything to hex string

func (*Convert) ToInt16LE

func (ll *Convert) ToInt16LE(bytes []byte) int16

func (*Convert) ToString

func (ll *Convert) ToString(data interface{}) string

returns anything to string

func (*Convert) ToStringFromBase64

func (ll *Convert) ToStringFromBase64(data interface{}) string

returns string from base64

func (*Convert) ToUInt16BE

func (ll *Convert) ToUInt16BE(bytes []byte) uint16

func (*Convert) ToUInt16LE

func (ll *Convert) ToUInt16LE(bytes []byte) uint16

type Crypto

type Crypto struct {
}

func (*Crypto) MD5Bytes

func (c *Crypto) MD5Bytes(data string) [16]byte

func (*Crypto) MD5HexString

func (c *Crypto) MD5HexString(data string) string

func (*Crypto) Sha1Bytes

func (c *Crypto) Sha1Bytes(data string) [20]byte

func (*Crypto) Sha1HexString

func (c *Crypto) Sha1HexString(data string) string

func (*Crypto) Sha256Bytes

func (c *Crypto) Sha256Bytes(data string) [32]byte

func (*Crypto) Sha256HexString

func (c *Crypto) Sha256HexString(data string) string

func (*Crypto) Sha512Bytes

func (c *Crypto) Sha512Bytes(data string) [64]byte

func (*Crypto) Sha512HexString

func (c *Crypto) Sha512HexString(data string) string

type HttpClient

type HttpClient struct {
}

func (*HttpClient) New

func (hc *HttpClient) New(insecure bool, timeout string) *httpclient.Client

Jump to

Keyboard shortcuts

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