Versions in this module Expand all Collapse all v0 v0.0.2 Jan 7, 2023 Changes in this version + type ServerConfig struct + Host string + Port string + func NewConfig() *ServerConfig v0.0.1 Jan 7, 2023 Changes in this version + 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 struct + func NewApp(version string, store UrlStore) App + type HandleFunc = func(http.ResponseWriter, *http.Request) + func MakeHandleFunction(a App, fn func(App, http.ResponseWriter, *http.Request)) HandleFunc + type TinyRequestPayload struct + Url string + type TinyRequestResponse struct + Code string + type UrlStore interface + GetById func(int) (string, error) + Store func(string) (int, error)