redisconn

package
v0.0.0-...-3499e60 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.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 RedisConn

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

func NewRedisConn

func NewRedisConn(ctx context.Context, addr string) (*RedisConn, error)

func (*RedisConn) CreateAuthToken

func (r *RedisConn) CreateAuthToken(ctx context.Context) (string, error)

func (*RedisConn) CreateSessionToken

func (r *RedisConn) CreateSessionToken(
	ctx context.Context,
	email string,
) (string, error)

func (*RedisConn) DeleteSessionToken

func (r *RedisConn) DeleteSessionToken(
	ctx context.Context,
	token string,
) error

func (*RedisConn) GetSessionToken

func (r *RedisConn) GetSessionToken(
	ctx context.Context,
	token string,
) (string, error)

func (*RedisConn) VerifyAndDelToken

func (r *RedisConn) VerifyAndDelToken(ctx context.Context, token string) error

verifyAndDelToken is used to delete a token after it has beeen verified as authentic.

Jump to

Keyboard shortcuts

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