Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterShortenerRoutes ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
// contains filtered or unexported fields
}
type RedirectRequest ¶
type RedirectRequest struct {
Key string `uri:"key" binding:"required,ascii"`
}
type ShortenRequest ¶
type ShortenRequest struct {
URL string `json:"url" binding:"required,http_url"`
}
type ShortenResponse ¶
type ShortenResponse struct {
Key string `json:"key"`
}
type Shortener ¶
type Shortener struct {
// contains filtered or unexported fields
}
func NewShortenerAdapter ¶
func NewShortenerAdapter(shortenerService ports.ShortenerService, validate *validator.Validate) *Shortener
Click to show internal directories.
Click to hide internal directories.