Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(pool *pgxpool.Pool) *Repository
func (*Repository) Create ¶
func (r *Repository) Create(ctx context.Context, payload entity.UrlPayload) error
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, hash string) (entity.UrlPayload, error)
func (*Repository) GetByLongUrl ¶
func (r *Repository) GetByLongUrl(ctx context.Context, longUrl string) (entity.UrlPayload, error)
Click to show internal directories.
Click to hide internal directories.