Documentation
¶
Index ¶
Constants ¶
View Source
const ( CACHE_CONTROL = "Cache-Control:private, max-age=0, no-transform" // disables bucket caching CONTENT_TYPE = "image/svg+xml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleBucketUploader ¶
type GoogleBucketUploader struct {
// contains filtered or unexported fields
}
func NewGoogleBucketUploader ¶
func NewGoogleBucketUploader(bucket, objectPath string) *GoogleBucketUploader
func (*GoogleBucketUploader) UploadSVG ¶
func (u *GoogleBucketUploader) UploadSVG(pair, svg string) error
UploadSVG uploads an SVG by using google storage package.
Click to show internal directories.
Click to hide internal directories.