Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Hostname is using to serve the application Hostname string //Port is using to serve the application Port string //CacheControlMaxAge is using to set max-age property of cache-control header CacheControlMaxAge int )
View Source
var ( //ErrorMessage is using to write the HTML response when any exception is occurred ErrorMessage = ` <h1>Oops! Something went wrong...</h1> <p>We seem to be having some technical difficulties. Hang tight.</p> ` //LogErrorFormat is using to format the message LogErrorFormat = "%s: %s" //LogErrorMessage is using to write a log message LogErrorMessage = "Unable to write HTTP response message" )
View Source
var ( //Patterns is using to store valid route patterns Patterns = [4]string{ `/i/(?P<slug>gdrive|gridfs|abs)/(?P<quality_r_1_100>\d+)/(?P<width_r_0_5000>\d+)x(?P<height_r_0_5000>\d+)/(?P<option>[gtc]{1,3})/(?P<path>.*)`, `/i/(?P<slug>gdrive|gridfs|abs)/(?P<quality_r_1_100>\d+)/(?P<width_r_0_5000>\d+)x(?P<height_r_0_5000>\d+)/(?P<path>.*)`, `/i/(?P<slug>gdrive|gridfs|abs)/(?P<webp>webp)/(?P<quality_r_1_100>\d+)/(?P<width_r_0_5000>\d+)x(?P<height_r_0_5000>\d+)/(?P<option>[gtc]{1,3})/(?P<path>.*)`, `/i/(?P<slug>gdrive|gridfs|abs)/(?P<webp>webp)/(?P<quality_r_1_100>\d+)/(?P<width_r_0_5000>\d+)x(?P<height_r_0_5000>\d+)/(?P<path>.*)`, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.