Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { LinkID int `json:"linkId"` AccessedAt string `json:"AccessedAt"` // contains filtered or unexported fields }
Activity represents access to one of the links
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller for Link methods
func NewController ¶
func NewController(db *db.Database, logger *logger.Logger) *Controller
NewController creates new link controller
func (*Controller) GetLink ¶
func (lc *Controller) GetLink(c echo.Context) error
GetLink get link with specific name
func (*Controller) GetLinkActivityStats ¶
func (lc *Controller) GetLinkActivityStats(c echo.Context) error
GetLinkActivityStats get link with specific name
func (*Controller) InsertLink ¶
func (lc *Controller) InsertLink(c echo.Context) error
InsertLink adds new link
func (*Controller) RedirectToLink ¶
func (lc *Controller) RedirectToLink(c echo.Context) error
RedirectToLink get link with specifig name and redirects to it's url
Click to show internal directories.
Click to hide internal directories.