Documentation ¶
Index ¶
- func BcryptCheck(password, hash string) bool
- func BcryptEncrypt(password string) string
- func NewJwtToken(secretKey, uuid, roleString string, iat, seconds int64, roleIds []string) (string, error)
- func ParseTags(lang string) []language.Tag
- func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error
- type RedisStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptCheck ¶
func BcryptEncrypt ¶
func NewJwtToken ¶ added in v0.2.3
Types ¶
type RedisStore ¶
type RedisStore struct { Expiration time.Duration PreKey string Context context.Context Redis *redis.Redis }
func NewRedisStore ¶
func NewRedisStore(r *redis.Redis) *RedisStore
func (*RedisStore) UseWithCtx ¶
func (r *RedisStore) UseWithCtx(ctx context.Context) base64Captcha.Store
Click to show internal directories.
Click to hide internal directories.