type CacheableDownloader …
type cacheableDownloader …
func NewCacheableDownloader(apiServiceName string, downloader *Downloader, handler http.Handler) CacheableDownloader { … }
func (d *cacheableDownloader) UpdateHandler(handler http.Handler) { … }
func (d *cacheableDownloader) Get() (*spec.Swagger, string, error) { … }
func (d *cacheableDownloader) get() (*spec.Swagger, string, error) { … }
type Downloader …
func NewDownloader() Downloader { … }
func (s *Downloader) handlerWithUser(handler http.Handler, info user.Info) http.Handler { … }
func etagFor(data []byte) string { … }
func (s *Downloader) Download(handler http.Handler, etag string) (returnSpec *spec.Swagger, newEtag string, httpStatus int, err error) { … }