Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRedisRepository ¶
type IRedisRepository interface { // GetByID returns the mcq with the given id. GetByID(ctx context.Context, id uint) (string, error) }
func NewRedisRepository ¶
func NewRedisRepository(redisConn *redis.Client) IRedisRepository
type IRepository ¶
type IRepository interface { // GetByID returns the mcq with the given id. GetByID(ctx context.Context, id uint) (domain.Mcq, error) }
func NewRepository ¶
func NewRepository(dbConn *gorm.DB) IRepository
type IUseCase ¶
type IUseCase interface { // GetByID returns the mcq with the given id. GetByID(ctx context.Context, id uint) (domain.Mcq, error) }
func NewUseCase ¶
func NewUseCase(repo IRepository, redis IRedisRepository) IUseCase
type RedisRepository ¶
type RedisRepository struct {
RedisConn *redis.Client // RedisConn is the redis connection.
}
type SQLRepository ¶
Click to show internal directories.
Click to hide internal directories.