Documentation ¶
Index ¶
- Constants
- func GenerateRandInt(length int) string
- func GenerateToken(userId string) (string, error)
- func GenerateUUID() string
- func GetTimeDiff(timestamp int64) int64
- func GetTimeStamp() int64
- func GetUserIdFromContext(ctx context.Context) (string, error)
- func TransactionHandle(txn *gorm.DB, err *error)
- func TypeConverter[R any](data any) (*R, error)
- func ValidateToken(token string) (string, bool)
Constants ¶
View Source
const (
CONTEXT_USER_TOKEN_AUTHORIZATION_STR = "Authorization"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateRandInt ¶
func GenerateToken ¶
func GenerateUUID ¶
func GenerateUUID() string
func GetTimeDiff ¶
func GetTimeStamp ¶
func GetTimeStamp() int64
func TransactionHandle ¶
func TypeConverter ¶
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.