util

package
Version: v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Source Files

Jump to

Keyboard shortcuts

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