Documentation
¶
Index ¶
- func APInit(db *URLMap, signal *chan bool)
- func Cleanup(db URLMap, endGoRoutines *chan bool)
- func GetIP(r *http.Request) string
- func GetTimestamp() string
- func HandleRequests(urlMap URLMap)
- func SetupCloseHandler(db URLMap, endGoRoutines *chan bool)
- type ShortenRequest
- type ShortenResponse
- type URLItem
- type URLMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimestamp ¶
func GetTimestamp() string
func HandleRequests ¶
func HandleRequests(urlMap URLMap)
func SetupCloseHandler ¶
Types ¶
type ShortenRequest ¶
type ShortenRequest struct {
URL string `json:"URL"`
}
type ShortenResponse ¶
type ShortenResponse struct {
URL string `json:"URL"`
}
Click to show internal directories.
Click to hide internal directories.