Documentation ¶
Index ¶
- type CacheRepository
- type URLRespository
- func (r *URLRespository) CreateURL(createURLDto *dtos.CreateURLDto, user *models.User) (*models.URL, error)
- func (r *URLRespository) GetAllURLs() ([]models.URL, error)
- func (r *URLRespository) GetURLByHash(hash string) (*models.URL, error)
- func (r *URLRespository) GetUserURLByHash(hash string, user *models.UserClaims) (*models.URL, error)
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheRepository ¶
type CacheRepository struct {
// contains filtered or unexported fields
}
func NewCacheRepository ¶
func NewCacheRepository(c *cache.Cache) *CacheRepository
func (*CacheRepository) SetURL ¶
func (c *CacheRepository) SetURL(url *models.URL)
type URLRespository ¶
type URLRespository struct {
// contains filtered or unexported fields
}
func NewURLRepository ¶
func NewURLRepository(s *gocql.Session, c models.URLCache) *URLRespository
func (*URLRespository) CreateURL ¶
func (r *URLRespository) CreateURL(createURLDto *dtos.CreateURLDto, user *models.User) (*models.URL, error)
func (*URLRespository) GetAllURLs ¶
func (r *URLRespository) GetAllURLs() ([]models.URL, error)
func (*URLRespository) GetURLByHash ¶
func (r *URLRespository) GetURLByHash(hash string) (*models.URL, error)
func (*URLRespository) GetUserURLByHash ¶
func (r *URLRespository) GetUserURLByHash(hash string, user *models.UserClaims) (*models.URL, error)
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(s *gocql.Session) *UserRepository
func (*UserRepository) CreateUser ¶
func (*UserRepository) ValidateUser ¶
Click to show internal directories.
Click to hide internal directories.