Documentation ¶
Index ¶
- Constants
- type ShortURL
- func (s *ShortURL) All(limit, offset int) (model.ShortURLs, error)
- func (s *ShortURL) ByShort(shortURL string) (model.ShortURL, error)
- func (s *ShortURL) ByShortToRedirect(shortURL string) (model.ShortURL, error)
- func (s *ShortURL) Create(m *model.ShortURL) error
- func (s *ShortURL) Delete(ID uuid.UUID) error
- func (s *ShortURL) SetUseCaseHistory(useCase UseCaseHistory)
- func (s *ShortURL) SetUseCaseSheets(useCase UseCaseSheets)
- func (s *ShortURL) Update(m *model.ShortURL) error
- type Storage
- type UseCase
- type UseCaseHistory
- type UseCaseSheets
Constants ¶
View Source
const ( MaxLetters = 7 HTTPProtocol = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortURL ¶
type ShortURL struct {
// contains filtered or unexported fields
}
func (*ShortURL) ByShortToRedirect ¶
func (*ShortURL) SetUseCaseHistory ¶
func (s *ShortURL) SetUseCaseHistory(useCase UseCaseHistory)
func (*ShortURL) SetUseCaseSheets ¶
func (s *ShortURL) SetUseCaseSheets(useCase UseCaseSheets)
type UseCaseHistory ¶
Click to show internal directories.
Click to hide internal directories.