Documentation ¶
Index ¶
- type NegativationRepository
- type RedisAuthRepository
- func (rr *RedisAuthRepository) CreateAuth(userID string, td *di.TokenDetails) error
- func (rr *RedisAuthRepository) DeleteRefresh(refreshUUID string) error
- func (rr *RedisAuthRepository) DeleteTokens(authD *di.AccessDetails) error
- func (rr *RedisAuthRepository) FetchAuth(tokenUUID string) (string, error)
- type UsersRepository
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
type UsersRepository ¶
type UsersRepository interface { FindByEmail(email string) (di.User, error) FindAll() ([]di.User, error) }
func NewUsersRepository ¶
func NewUsersRepository(client *mongo.Client) UsersRepository
Click to show internal directories.
Click to hide internal directories.