Documentation
¶
Index ¶
- func DecodeGetId(publicKey string, tokenstring string) (string, error)
- func Encode(id string, privateKey string) (string, error)
- func EncodeWithStruct[T any](id string, data *T, privateKey string) (string, error)
- func EncodeWithStructDuration[T any](id string, data *T, privateKey string, dur ...time.Duration) (string, error)
- func EncodeforHours(id, alias, privateKey string, hours int32) (string, error)
- func EncodeforMinutes(id string, privateKey string, minutes int32) (string, error)
- func EncodeforSeconds(id string, privateKey string, seconds int32) (string, error)
- func GenerateKey() (privateKey, publicKey string)
- func GetAppInfo(wuid string) (protocol, hostname, pathname string)
- func GetAppSubDomain(wuid string) (subdomain string)
- func GetAppUrl(wuid string) string
- func GetBcryptHash(text string) string
- func GetMD5Hash(text string) string
- func RandomLowerCaseString(length int) string
- func RandomLowerCaseStringwithSpecialCharacter(length int) string
- func RandomString(length int) string
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGetId ¶ added in v0.0.7
func EncodeWithStruct ¶ added in v0.1.3
func EncodeWithStructDuration ¶ added in v0.1.4
func EncodeforHours ¶ added in v0.0.6
func EncodeforMinutes ¶ added in v0.0.6
func EncodeforSeconds ¶ added in v0.0.6
func GenerateKey ¶ added in v0.0.2
func GenerateKey() (privateKey, publicKey string)
func GetAppInfo ¶ added in v0.0.8
func GetAppSubDomain ¶ added in v0.0.8
func GetBcryptHash ¶ added in v0.1.2
func GetMD5Hash ¶ added in v0.1.0
func RandomLowerCaseString ¶ added in v0.1.1
func RandomLowerCaseStringwithSpecialCharacter ¶ added in v0.1.1
func RandomString ¶ added in v0.0.5
Types ¶
Click to show internal directories.
Click to hide internal directories.