toolkit

package
v0.0.0-...-d08609b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_System_EmptyData     = errors.New("Empty Data")
	Error_PaseConfigFile       = errors.New("parse file config fail")
	Error_System_DataError     = errors.New("Data error")
	Error_System_UserNotExists = errors.New("The user does not exist")

	//数据已存在
	Error_System_DataAlreadyExist = errors.New("Data already exists")
	// 错误的参数
	Error_System_ParameterError = errors.New("the parameters of the error")

	//无可用的服务
	Error_System_NoService = errors.New("No service")
)
View Source
var (
	Service_Style_GRPC = "grpc"

	Service_Style_Http = "http"
)
View Source
var (
	Error_String_DataError = "Data error"
)

Functions

func Decrypt

func Decrypt(src []byte) (strDesc string, err error)

解密字符串

func DecryptBase64

func DecryptBase64(strSrc string) (strDesc string, err error)

func Encrypt

func Encrypt(strMesg string) ([]byte, error)

加密字符串

func EncryptBase64

func EncryptBase64(strMesg string) (string, error)

func ParseJsonConfigFile

func ParseJsonConfigFile(config string, conf interface{}) error

通用的解析Json文件转换为相应类的方法

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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