Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PartWriter ¶
func PartWriter(cz *types.CacheZone, objID *types.ObjectID, ContentRange httputils.ContentRange) io.WriteCloser
PartWriter creates a io.WriteCloser that statefully writes sequential parts of an object to the supplied storage.
Types ¶
type CachingProxy ¶
CachingProxy is resposible for caching the metadata and parts the requested objects to `loc.Storage`, according to the `loc.Algorithm`.
func New ¶
func New(cfg *config.Handler, loc *types.Location, next types.RequestHandler) (*CachingProxy, error)
New creates and returns a ready to used Handler.
func (*CachingProxy) RequestHandle ¶
func (c *CachingProxy) RequestHandle(ctx context.Context, resp http.ResponseWriter, req *http.Request)
RequestHandle is the main serving function
Click to show internal directories.
Click to hide internal directories.