Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Url ¶
type Url string
Url is the long url the is associated with the token
type UrlEntry ¶
type UrlEntry struct { Url Url // The long url Token UrlToken // The token is a short string that will be used to access the long url VisitCount int // The number of times the url has been visited }
UrlEntry is the domain entity that will store the long url, token, and the number of times the url has been visited
type UrlToken ¶
type UrlToken string
UrlToken is a short string that will be used to access the long url. This token is 8 characters long and can be and upper or lower case letter or a number
func NewUrlToken ¶
func NewUrlToken() UrlToken
NewUrlToken will generate a new url token that is 8 characters long.
Click to show internal directories.
Click to hide internal directories.