Documentation ¶
Index ¶
- func GenerateShortenUrl(id uint32) string
- type Service
- func (s *Service) CreateShorten(ctx context.Context, input model.InputShorten) (*model.Shorten, error)
- func (s *Service) DeleteShorten(ctx context.Context, shortUrl string) (int64, error)
- func (s *Service) GetShorten(ctx context.Context, shortUrl string) (*model.Shorten, error)
- func (s *Service) Redirect(ctx context.Context, shortUrl string) (string, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateShortenUrl ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateShorten ¶
func (*Service) DeleteShorten ¶
func (*Service) GetShorten ¶
Click to show internal directories.
Click to hide internal directories.