Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(db database.URLDatabase, cache cache.URLCache) def.URLRepository
NewRepository is a function that creates a new repository. It takes a pointer to a sqlx.DB instance and a pointer to a redis.Client instance as parameters. The sqlx.DB instance represents the database connection. The redis.Client instance represents the Redis cache. It returns a pointer to a repository instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.