Documentation ¶
Index ¶
- func HandleRedirect(a App, w http.ResponseWriter, r *http.Request)
- func HandleRoot(a App, w http.ResponseWriter, r *http.Request)
- func HandleTinyfication(a App, w http.ResponseWriter, r *http.Request)
- type App
- type HandleFunc
- type ServerConfig
- type TinyRequestPayload
- type TinyRequestResponse
- type UrlStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRedirect ¶
func HandleRedirect(a App, w http.ResponseWriter, r *http.Request)
func HandleRoot ¶
func HandleRoot(a App, w http.ResponseWriter, r *http.Request)
func HandleTinyfication ¶
func HandleTinyfication(a App, w http.ResponseWriter, r *http.Request)
Types ¶
type HandleFunc ¶
type HandleFunc = func(http.ResponseWriter, *http.Request)
func MakeHandleFunction ¶
func MakeHandleFunction(a App, fn func(App, http.ResponseWriter, *http.Request)) HandleFunc
type ServerConfig ¶ added in v0.0.2
func NewConfig ¶ added in v0.0.2
func NewConfig() *ServerConfig
type TinyRequestPayload ¶
type TinyRequestPayload struct {
Url string
}
type TinyRequestResponse ¶
type TinyRequestResponse struct {
Code string
}
Click to show internal directories.
Click to hide internal directories.