Documentation ¶
Index ¶
- type AuthenticationRepository
- type IAuthenticationRepository
- type IRedisRepository
- type RedisRepository
- func (rr *RedisRepository) GetHashValue(key string, field string) (interface{}, error)
- func (rr *RedisRepository) GetStringValue(key string) (interface{}, error)
- func (rr *RedisRepository) SetHashValue(key string, field string, value interface{}, expiration time.Duration) error
- func (rr *RedisRepository) SetStringValue(key string, value interface{}, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationRepository ¶
type AuthenticationRepository struct {
Database squirrel.StatementBuilderType
}
func (*AuthenticationRepository) CreateUser ¶
func (ar *AuthenticationRepository) CreateUser(user entities.User) (userId string, err error)
func (*AuthenticationRepository) GetUserByEmail ¶
func (ar *AuthenticationRepository) GetUserByEmail(email string) (user entities.User, err error)
func (*AuthenticationRepository) GetUserIdByEmail ¶
func (ar *AuthenticationRepository) GetUserIdByEmail(email string) (userId string, err error)
type IRedisRepository ¶
type IRedisRepository interface { SetStringValue(key string, value interface{}, expiration time.Duration) error SetHashValue(key string, field string, value interface{}, expiration time.Duration) error GetStringValue(key string) (interface{}, error) GetHashValue(key string, field string) (interface{}, error) }
type RedisRepository ¶
type RedisRepository struct {
Client *redis.Client
}
func (*RedisRepository) GetHashValue ¶
func (rr *RedisRepository) GetHashValue(key string, field string) (interface{}, error)
func (*RedisRepository) GetStringValue ¶
func (rr *RedisRepository) GetStringValue(key string) (interface{}, error)
func (*RedisRepository) SetHashValue ¶
func (*RedisRepository) SetStringValue ¶
func (rr *RedisRepository) SetStringValue(key string, value interface{}, expiration time.Duration) error
Click to show internal directories.
Click to hide internal directories.