url

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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