Versions in this module Expand all Collapse all v0 v0.246.3 Jul 2, 2023 Changes in this version + type Cache struct + Complete bool + CreatedAt int64 + ID uint64 + Key string + KeyVersionHash string + Size int64 + UsedAt int64 + Version string + func (c *Cache) FillKeyVersionHash() + type Handler struct + func StartHandler(dir, outboundIP string, port uint16, logger logrus.FieldLogger) (*Handler, error) + func (h *Handler) Close() error + func (h *Handler) ExternalURL() string + type Request struct + Key string + Size int64 + Version string + func (c *Request) ToCache() *Cache + type Storage struct + func NewStorage(rootDir string) (*Storage, error) + func (s *Storage) Commit(id uint64, size int64) error + func (s *Storage) Exist(id uint64) (bool, error) + func (s *Storage) Remove(id uint64) + func (s *Storage) Serve(w http.ResponseWriter, r *http.Request, id uint64) + func (s *Storage) Write(id uint64, offset int64, reader io.Reader) error