Documentation ¶
Index ¶
- func CheckQuarantineStatus(ctx rcontext.RequestContext, hash string) error
- func CheckSpamAsync(ctx rcontext.RequestContext, reader io.Reader, metadata FileMetadata) chan SpamResponse
- func FindRecord(ctx rcontext.RequestContext, hash string, userId string, contentType string, ...) (*database.DbMedia, bool, error)
- func GenerateMediaId(ctx rcontext.RequestContext, origin string) (string, error)
- func LimitStream(ctx rcontext.RequestContext, r io.ReadCloser) io.ReadCloser
- func LockForUpload(ctx rcontext.RequestContext, hash string) (func() error, error)
- func PopulateCacheAsync(ctx rcontext.RequestContext, reader io.Reader, size int64, sha256hash string) chan struct{}
- type FileMetadata
- type SpamResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckQuarantineStatus ¶
func CheckQuarantineStatus(ctx rcontext.RequestContext, hash string) error
func CheckSpamAsync ¶
func CheckSpamAsync(ctx rcontext.RequestContext, reader io.Reader, metadata FileMetadata) chan SpamResponse
func FindRecord ¶
func GenerateMediaId ¶
func GenerateMediaId(ctx rcontext.RequestContext, origin string) (string, error)
func LimitStream ¶
func LimitStream(ctx rcontext.RequestContext, r io.ReadCloser) io.ReadCloser
func LockForUpload ¶
func LockForUpload(ctx rcontext.RequestContext, hash string) (func() error, error)
func PopulateCacheAsync ¶
Types ¶
type FileMetadata ¶
type SpamResponse ¶
Click to show internal directories.
Click to hide internal directories.