Documentation ¶ Index ¶ Variables func Decrypt(value string) (string, error) func Encrypt(value string) string func GetCredentialFromCtx(ctx context.Context) (isAdmin bool, tenantId string, userId string, err error) 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. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.