package
0.14.1
Repository: https://github.com/element-hq/dendrite.git
Documentation: pkg.go.dev

# Constants

Crop indicates we should crop the thumbnail on resize.
Scale indicates we should scale the thumbnail on resize.

# Structs

ActiveRemoteRequests is a lockable map of media URIs requested from remote homeservers It is used for ensuring multiple requests for the same file do not clobber each other.
ActiveThumbnailGeneration is a lockable map of file paths being thumbnailed It is used to ensure thumbnails are only generated once.
MediaMetadata is metadata associated with a media file.
RemoteRequestResult is used for broadcasting the result of a request for a remote file to routines waiting on the condition.
ThumbnailGenerationResult is used for broadcasting the result of thumbnail generation to routines waiting on the condition.
ThumbnailMetadata contains the metadata about an individual thumbnail.

# Type aliases

Base64Hash is a base64 URLEncoding string representation of a SHA-256 hash sum.
ContentType is an HTTP Content-Type header string representing the MIME type of a request body.
Filename is a string representing the name of a file.
FileSizeBytes is a file size in bytes.
MatrixUserID is a Matrix user ID string in the form @user:domain e.g.
MediaID is a string representing the unique identifier for a file (could be a hash but does not have to be).
Path is an absolute or relative UNIX filesystem path.
RequestMethod is an HTTP request method i.e.
ThumbnailSize contains a single thumbnail size configuration.