Documentation ¶
Index ¶
Constants ¶
View Source
const VERSION = "1.16.0"
VERSION number of current image server
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageConfiguration ¶
type ImageConfiguration struct { // ServerConfiguration *ServerConfiguration ID string Width int Height int Filename string Format string Source string Quality uint Namespace string }
ImageConfiguration struct Properties used to generate new image
func (*ImageConfiguration) ToContentType ¶
func (ic *ImageConfiguration) ToContentType() string
ToContentType returns the content type based on the image format
type Logger ¶
type Logger interface { ImagePosted() ImagePostingFailed() ImageProcessed(ic *ImageConfiguration) ImageAlreadyProcessed(ic *ImageConfiguration) ImageProcessedWithErrors(ic *ImageConfiguration) AllImagesAlreadyProcessed(namespace string, hash string, sourceURL string) SourceDownloaded() OriginalDownloaded(source string, destination string) OriginalDownloadFailed(source string) OriginalDownloadSkipped(source string) }
type Paths ¶
type Paths interface { LocalInfoPath(string, string) string RemoteInfoPath(string, string) string TempImagePath(string) string RandomTempPath() string LocalOriginalPath(string, string) string LocalImagePath(namespace string, md5 string, imageName string) string LocalImageDirectory(namespace string, md5 string) string RemoteImageDirectory(namespace string, md5 string) string RemoteOriginalPath(string, string) string RemoteOriginalURL(string, string) string RemoteImagePath(namespace string, md5 string, imageName string) string }
Paths
type ServerConfiguration ¶
type ServerConfiguration struct { WhitelistedExtensions []string MaximumWidth int LocalBasePath string RemoteBasePath string RemoteBaseURL string DefaultQuality uint UploaderConcurrency uint ProcessorConcurrency uint HTTPTimeout time.Duration Adapters *Adapters Outputs string AWSAccessKeyID string AWSSecretKey string AWSBucket string AWSRegion string MantaURL string MantaUser string MantaKeyID string SDCIdentity string }
ServerConfiguration struct
type SourceMapper ¶
type SourceMapper interface {
RemoteImageURL(*ImageConfiguration) string
}
SourceMapper
Click to show internal directories.
Click to hide internal directories.