redis_auth

package
v0.0.0-...-62a34bc Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisAuth

type RedisAuth struct {
	Red    *redis.Client
	Prefix string
}

func New

func New(red *redis.Client, namespace, prefix string) *RedisAuth

func (*RedisAuth) Read

func (a *RedisAuth) Read(uid, token string) (int, error)

func (*RedisAuth) Write

func (a *RedisAuth) Write(uid, token string, ttl time.Duration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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