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
Click to show internal directories.
Click to hide internal directories.