Versions in this module Expand all Collapse all v1 v1.1.0 Feb 4, 2020 Changes in this version type Config + AllowedOrigins string v1.0.0 Oct 28, 2018 Changes in this version + var ErrFileDoesntExists = errors.New("file doesn't exists") + type AuthConfig struct + Callback func(*http.Request) bool + type Config struct + CleanupIntervalSecs int + DB DBConfig + DownloadAuth AuthConfig + HTTPSDownstream bool + Limits LimitsConfig + ListenOn string + StorageDir string + UploadAuth AuthConfig + var Default Config + type DBConfig struct + DSN string + Driver string + type LimitsConfig struct + MaxFileSize uint + MaxStoreSecs uint + MaxUses uint + type Server struct + Conf Config + DB *db + DebugLogger *log.Logger + Logger *log.Logger + func New(conf Config) (*Server, error) + func (s *Server) AddFile(contents io.Reader, contentType string, maxUses uint, storeUntil time.Time) (string, error) + func (s *Server) Close() error + func (s *Server) GetFile(fileUUID string) (r io.ReadSeeker, contentType string, err error) + func (s *Server) OpenFile(fileUUID string) (io.ReadSeeker, error) + func (s *Server) RemoveFile(fileUUID string) error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) v1.0.0-rc2 Oct 21, 2018 v1.0.0-rc1 Oct 12, 2018