Documentation ¶
Index ¶
- Variables
- func AddDelTag(delTime *time.Time, target string) string
- func AesDecrypt(encrypted string) (string, error)
- func AesEncrypt(origData string) (string, error)
- func DecodeString(base64Str string) (string, error)
- func GetDuplicate(c []string) []string
- func HasPrefix(s, prefix string, caseSensitive bool) bool
- func HasSuffix(s, suffix string, caseSensitive bool) bool
- func JoinUintSliceToString(s []uint, sep string) string
- func Md5String(data string) string
- func ParseAuditPlanName(tokenString string) (string, error)
- func RemoveDuplicate(c []string) []string
- func Round(f float64, dec int) float64
- func SetSecretKey(key []byte) error
- type CustomClaimOption
- type JWT
- type Password
Constants ¶
This section is empty.
Variables ¶
View Source
var JWTSecretKey = []byte("secret")
View Source
var SecretKey = []byte("471F77D078C5994BD06B65B8B5B1935B")
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func DecodeString ¶
func GetDuplicate ¶
func JoinUintSliceToString ¶ added in v1.2202.0
sep example: ", "
func ParseAuditPlanName ¶
ParseAuditPlanName used by echo middleware which only verify api request to audit plan related.
func RemoveDuplicate ¶
func SetSecretKey ¶ added in v1.2203.0
Types ¶
type CustomClaimOption ¶
type CustomClaimOption interface {
// contains filtered or unexported methods
}
func WithAuditPlanName ¶
func WithAuditPlanName(name string) CustomClaimOption
Click to show internal directories.
Click to hide internal directories.