repositories

package
v0.0.0-...-1b7ffe2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NegativationRepository

type NegativationRepository interface {
	InsertOne(n di.Negativation) error
	InsertMany(n []di.Negativation) error
	Update(id string, n *bson.M) (di.Negativation, error)
	Delete(customerDocument string) error

	GetOne(customerDocument string) ([]di.Negativation, error)
	GetByID(id string) (di.Negativation, error)
	GetAll() ([]di.Negativation, error)
}

func NewNegativationRepository

func NewNegativationRepository(client *mongo.Client) NegativationRepository

type RedisAuthRepository

type RedisAuthRepository struct {
	// contains filtered or unexported fields
}

func NewAuthRepository

func NewAuthRepository(client *redis.Client) *RedisAuthRepository

func (*RedisAuthRepository) CreateAuth

func (rr *RedisAuthRepository) CreateAuth(userID string, td *di.TokenDetails) error

func (*RedisAuthRepository) DeleteRefresh

func (rr *RedisAuthRepository) DeleteRefresh(refreshUUID string) error

func (*RedisAuthRepository) DeleteTokens

func (rr *RedisAuthRepository) DeleteTokens(authD *di.AccessDetails) error

func (*RedisAuthRepository) FetchAuth

func (rr *RedisAuthRepository) FetchAuth(tokenUUID string) (string, error)

type UsersRepository

type UsersRepository interface {
	FindByEmail(email string) (di.User, error)
	FindAll() ([]di.User, error)
}

func NewUsersRepository

func NewUsersRepository(client *mongo.Client) UsersRepository

Jump to

Keyboard shortcuts

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