Add job for monitoring bw limit status of tokens
This commit is contained in:
7
pkg/utils/mask_token.go
Normal file
7
pkg/utils/mask_token.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
|
||||
func MaskToken(token string) string {
|
||||
return strings.Repeat("*", len(token)-4) + token[len(token)-4:]
|
||||
}
|
||||
Reference in New Issue
Block a user