merepositories

package
v0.0.0-...-10e2223 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenRepository

func NewTokenRepository() repositories.TokenRepository

NewTokenRepository constructor

func UseTokenRepository

func UseTokenRepository()

UseTokenRepository in domain

Types

type TokenRepository

type TokenRepository struct {
	Conn *redis.Client
}

TokenRepository struct

func (*TokenRepository) CheckUsername

func (repository *TokenRepository) CheckUsername(username string, token string) bool

CheckUsername in redis

func (*TokenRepository) GenerateToken

func (repository *TokenRepository) GenerateToken(username string) string

GenerateToken based in username from account

Jump to

Keyboard shortcuts

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