user

package
v0.0.0-...-e6d10a5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(r chi.Router, service Service, l logger.Interface)

Types

type Service

type Service interface {
	// GetURLs returns user urls
	GetURLs(ctx context.Context) (getURLsResponse, error)
	// DeleteURLs sends request to the deletion queue
	DeleteURLs(ctx context.Context, shortURLs []string)
}

func NewService

func NewService(repo repository.User, queue *queue.Queue) Service

NewService creates a new user service

Jump to

Keyboard shortcuts

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