uploader

package
v0.0.0-...-693d636 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL