Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenMetaData ¶
type Utils ¶
type Utils struct {
DB *sql.DB
RDB *redis.Client
Mode int
TxOption sql.TxOptions
// contains filtered or unexported fields
}
func (*Utils) CreateToken ¶
func (*Utils) RandomNumber ¶
Generate Randomnumber range between 0 and Salt .
func (*Utils) RandomString ¶
Generate Random String of lenght num and num cannot be less than 0 and greater than 256.
func (*Utils) VerifyToken ¶
func (Ut *Utils) VerifyToken(Token string) (bool, TokenMetaData, error)
Click to show internal directories.
Click to hide internal directories.