Versions in this module Expand all Collapse all v1 v1.0.0 Jul 5, 2019 Changes in this version + var TemplatesMap = make(map[string]*template.Template) + func Adapt(h http.Handler, adapters ...Adapter) http.Handler + func GetRUID(ctx context.Context) string + func GetURI(ctx context.Context) *api.URI + func InitLoggingResponseWriter(h http.Handler) http.Handler + func InstrumentOpenTracing(h http.Handler) http.Handler + func ParseURI(h http.Handler) http.Handler + func RecoverPanic(h http.Handler) http.Handler + func SetRUID(ctx context.Context, ruid string) context.Context + func SetRequestHost(h http.Handler) http.Handler + func SetRequestID(h http.Handler) http.Handler + func SetURI(ctx context.Context, uri *api.URI) context.Context + func ShowMultipleChoices(w http.ResponseWriter, r *http.Request, list api.ManifestList) + type Adapter func(http.Handler) http.Handler + type ResponseParams struct + Code int + Details template.HTML + Msg template.HTML + Timestamp string + type RoundTripper struct + Host string + Port string + func (self *RoundTripper) RoundTrip(req *http.Request) (resp *http.Response, err error) + type Server struct + func NewServer(api *api.API, corsString string) *Server + func (s *Server) HandleBzzGet(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleDelete(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGet(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGetFeed(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGetFile(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGetList(w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePostFeed(w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePostFiles(w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePostRaw(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleRootPaths(w http.ResponseWriter, r *http.Request) + func (s *Server) ListenAndServe(addr string) error + type TestServer interface + ServeHTTP func(http.ResponseWriter, *http.Request) + type TestSwarmServer struct + CurrentTime uint64 + FileStore *storage.FileStore + Hasher storage.SwarmHash + func NewTestSwarmServer(t *testing.T, serverFunc func(*api.API) TestServer, resolver api.Resolver) *TestSwarmServer + func (t *TestSwarmServer) Close() + func (t *TestSwarmServer) Now() feed.Timestamp