Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
type MainController ¶
type MainController struct {
Controller
}
func NewMainController ¶
func NewMainController(connection db.DbConnection) *MainController
func (*MainController) MainUrl ¶
func (c *MainController) MainUrl(w http.ResponseWriter, r *http.Request)
type ResponseBody ¶
type ResponseBody struct {
Short_url string `json:"short_url"`
}
type UrlController ¶
type UrlController struct {
Controller
}
func NewUrlController ¶
func NewUrlController(connection db.DbConnection) *UrlController
func (*UrlController) MakeUrl ¶
func (c *UrlController) MakeUrl(w http.ResponseWriter, r *http.Request)
func (*UrlController) RedirectShortenUrl ¶
func (c *UrlController) RedirectShortenUrl(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.