Versions in this module Expand all Collapse all v0 v0.2.1 Aug 11, 2021 Changes in this version + const ErrNoSingleFile + type Config struct + CachePath string + DataPath string + type File struct + CType string + CreatedAt time.Time + ID string + Name string + SHA1 string + Size int64 + State string + Token string + type Service struct + Config *Config + Log *log.SugaredLogger + func New(cfg Config, logger *log.SugaredLogger, ps *pubsub.Service) (*Service, error) + func (srv Service) AddFile(token string, file *multipart.FileHeader) (key string, err error) + func (srv Service) Close() + func (srv Service) File(token, id string) (fileMeta *File, filePath string, err error) + func (srv Service) FileList(token string) (files []File, err error) + func (srv Service) FileStateChange(id, state string) error + func (srv Service) HandlersClose() + func (srv Service) HandlersRun() + type UserEvent struct + FileID string + State string + Type string