Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortCodeGenerator ¶
type UrlRepository ¶
type Urls ¶
type Urls struct {
// contains filtered or unexported fields
}
func NewUrls ¶
func NewUrls(generator ShortCodeGenerator, repo UrlRepository) *Urls
func (*Urls) Redirect ¶
func (u *Urls) Redirect(ctx context.Context, request *api.RedirectRequest) (*api.RedirectResponse, error)
func (*Urls) Shorten ¶
func (u *Urls) Shorten(ctx context.Context, request *api.ShortenRequest) (*api.ShortenResponse, error)
Click to show internal directories.
Click to hide internal directories.