repository

package
v0.0.0-...-8b0b209 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTokenGenerationProblem = errors.New("could not generate a token")
)

TokenRepository context generic error

Functions

This section is empty.

Types

type TokenRepository

type TokenRepository interface {
	Generate(*entity.User) (string, error)
	Validate(string) (bool, error)
}

TokenRepository defines how a token repository should be implemented

type UserRepository

type UserRepository interface {
	GetByEmail(context.Context, string) (*entity.User, error)
}

UserRepository defines how a user repository should be implemented

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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