Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct { ID string `json:"-" swaggerignore:"true"` // Link short name as user requires, if empty will be generated, must be unique ShortName string `json:"shortName" example:"link-short-name" validate:"shortname"` // Original URL where to redirect the visitor OriginalURL string `json:"originalUrl" example:"https://example.com/my-cool-url-path" validate:"required,url,urlscheme"` // User comment Comment string `json:"comment" example:"Free text comment"` }
Link defines a link structure that is used for redirects
func (*Link) FillDefaults ¶
func (c *Link) FillDefaults()
FillDefaults sets defaults values for those that fields are not set Currently sets only Link.ShortName (builds a pseudo-random string up to 8 chars len)
Click to show internal directories.
Click to hide internal directories.