Documentation
¶
Index ¶
Constants ¶
View Source
const ( CLOUDFLARE_PROVIDER_NAME = "cloudflare" CLOUDFLARE_IMAGE_ENDPOINT_REGEX = `^(https://imagedelivery\.net/[A-Za-z0-9_-]+/[A-Za-z0-9_-]+)(?:/([A-Za-z0-9_-]+))?$` CLOUDFLARE_STREAM_ENDPOINT_REGEX = `^(https://customer-[A-Za-z0-9]+\.cloudflarestream\.com/[A-Za-z0-9]+/manifest/video)\.(m3u8|mpd)$` )
Variables ¶
Functions ¶
func IsCloudflareImageURL ¶ added in v0.2.2
IsCloudflareImageURL checks if a URL is a Cloudflare Images URL It returns a boolean indicating if the URL is a Cloudflare Images URL and a boolean indicating if the URL has a variant
func NewMediaProvider ¶
func NewMediaProvider(cfClient adapter.CloudflareClient, config *Config, dl downloader.Downloader, fs adapter.FileSystem) mediaprovider.Provider
NewMediaProvider creates a new Cloudflare Images and Stream provider
Types ¶
Click to show internal directories.
Click to hide internal directories.