Versions in this module Expand all Collapse all v0 v0.0.2 Sep 29, 2021 v0.0.1 Sep 25, 2021 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func Handler(si ServerInterface) http.Handler + func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler + func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler + func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + type ChiServerOptions struct + BaseRouter chi.Router + BaseURL string + Middlewares []MiddlewareFunc + type CreateShortUrlJSONBody RequestShortUrl + type CreateShortUrlJSONRequestBody CreateShortUrlJSONBody + type Link struct + CreatedAt time.Time + DeletedAt *time.Time + ExpiredAt *time.Time + Hits int32 + TargetUrl string + Token string + type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc + type RequestShortUrl struct + ExpiredInDays *int32 + TargetUrl string + type ResponseShortUrl struct + ShortUrl string + ShortUrlInfo *string + type ServerInterface interface + CreateShortUrl func(w http.ResponseWriter, r *http.Request) + GetShortUrlInfo func(w http.ResponseWriter, r *http.Request, token string) + HitShortUrl func(w http.ResponseWriter, r *http.Request, token string) + type ServerInterfaceWrapper struct + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) CreateShortUrl(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetShortUrlInfo(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) HitShortUrl(w http.ResponseWriter, r *http.Request)