Documentation
¶
Index ¶
Constants ¶
View Source
const MaxResizeSize = 2560
View Source
const MinResizeSize = 0
Variables ¶
View Source
var InternalError failure.StringCode = "InternalError"
View Source
var InvalidArgument failure.StringCode = "InvalidArgument"
View Source
var NotFound failure.StringCode = "NotFound"
Functions ¶
func ImageHandler ¶
func ImageHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type ImageOption ¶
type ImageOption struct { Bucket string Object string Size int CacheControlMaxAge int // Pathから指定はできず、App側で指定する }
func BuildImageOption ¶
func BuildImageOption(path string) (*ImageOption, error)
BuildImageOption is Request URLからImageOptionを生成する App Engine Image Serviceと同じ雰囲気のURLを利用する時に使う
期待する形式 `/{bucket}/{object}` `/{bucket}/{object}/=sXXX`
Click to show internal directories.
Click to hide internal directories.