util

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var XXTEA_KEY = []byte("hehehehe")

Functions

func Decrypt

func Decrypt(value string) (string, error)

func Encrypt

func Encrypt(value string) string

func GetCredentialFromCtx

func GetCredentialFromCtx(ctx context.Context) (isAdmin bool, tenantId string, userId string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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