Documentation ¶
Index ¶
- func Startup(l *log.Logger) *mux.Router
- type URLAssociationsController
- func (c *URLAssociationsController) AssociateURL() http.HandlerFunc
- func (c *URLAssociationsController) DisassociateURL() http.HandlerFunc
- func (c *URLAssociationsController) GetAllAssociatedURLs() http.HandlerFunc
- func (c *URLAssociationsController) LogLine(text string)
- func (c *URLAssociationsController) RedirectIfExist() http.HandlerFunc
- func (c *URLAssociationsController) UpdateURL() http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type URLAssociationsController ¶
type URLAssociationsController struct {
// contains filtered or unexported fields
}
URLAssociationsController represents the controller to handle requests for URLs
func (*URLAssociationsController) AssociateURL ¶
func (c *URLAssociationsController) AssociateURL() http.HandlerFunc
AssociateURL generates a unique id to associate to the URL if it is a valid URL
func (*URLAssociationsController) DisassociateURL ¶
func (c *URLAssociationsController) DisassociateURL() http.HandlerFunc
DisassociateURL removes the association of the URL to the requested id if exists
func (*URLAssociationsController) GetAllAssociatedURLs ¶
func (c *URLAssociationsController) GetAllAssociatedURLs() http.HandlerFunc
GetAllAssociatedURLs return all the URLs associations
func (*URLAssociationsController) LogLine ¶
func (c *URLAssociationsController) LogLine(text string)
LogLine logs the text using the controller's logger
func (*URLAssociationsController) RedirectIfExist ¶
func (c *URLAssociationsController) RedirectIfExist() http.HandlerFunc
RedirectIfExist redirects the request id to its associated real url if exists
func (*URLAssociationsController) UpdateURL ¶
func (c *URLAssociationsController) UpdateURL() http.HandlerFunc
UpdateURL updates the url associated to the requested uuid
Click to show internal directories.
Click to hide internal directories.