modules

package
v0.0.0-...-431252f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: BSL-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forgot

type Forgot struct {
	Client *redis.Client
	Expire time.Duration
}

func (*Forgot) Get

func (f *Forgot) Get(key string) (int, error)

Get returns user id key: hash key

func (*Forgot) New

func (f *Forgot) New(userID int, key string) error

New forgot password event key: hash key

type Reset

type Reset struct {
	Client *redis.Client
	Expire time.Duration
}

func (*Reset) Get

func (r *Reset) Get(key string) (int, error)

Get returns user id key: hash key

func (*Reset) New

func (r *Reset) New(userid int, key string) error

New reset password event key: hash key

type Verify

type Verify struct {
	Client *redis.Client
	Expire time.Duration
}

func (*Verify) Get

func (v *Verify) Get(key string) (model.Users, error)

func (*Verify) New

func (v *Verify) New(user model.Users, key string) error

New creates verify user event user: user struct with password, mail... key: hash key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL