auth

package
v0.0.0-...-010a373 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Client *redis.Client
}

func NewRepository

func NewRepository(client *redis.Client) *Repository

Creates new redis repository for auth

func (*Repository) CreateAuth

func (r *Repository) CreateAuth(token *entity.Token) error

Creates access token, uuid key value pair into redis db

func (*Repository) DeleteAuth

func (r *Repository) DeleteAuth(uuid string) error

Deletes access token from redis db

func (*Repository) FindAuth

func (r *Repository) FindAuth(uuid string) (string, error)

Gets access token from redis db

Jump to

Keyboard shortcuts

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