Documentation
¶
Overview ¶
Package uploader contains app that handles media part uploads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Logger *zap.Logger Notificator *notificator.Notificator SessionStorage *sessionStore.Store URIPathPrefix string S3PathPrefix string S3Endpoint string S3AccessKey string S3SecretKey string S3Bucket string S3SSL bool }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a media file uploader service. It implements fasthttp handler that reads uploaded part and stores it in media store. Every request is also checked for valid "upload"-session.
After each successful part upload, uploader calculates sha256 checksum and asynchronously notifies videoapi.
func (*Service) Handler ¶
func (svc *Service) Handler() func(*fasthttp.RequestCtx)
Click to show internal directories.
Click to hide internal directories.