verificationcoderedis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisRepository

type RedisRepository struct {
	// contains filtered or unexported fields
}

func New

func New() *RedisRepository

func (*RedisRepository) Get

func (r *RedisRepository) Get(ctx context.Context, verificationCodeId int64) (string, error)

func (*RedisRepository) Insert

func (r *RedisRepository) Insert(ctx context.Context, verificationCodeId, expireTime int64, code string) error

func (*RedisRepository) Remove

func (r *RedisRepository) Remove(ctx context.Context, verificationCodeId int64) error

Jump to

Keyboard shortcuts

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