Documentation ¶
Overview ¶
use google cloud storage to store media files like image since go cloud storage package is in experimental and may make backwards-incompatible changes, this package should be updated correspondingly
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNumberNotMatch = errors.New("#key isn't same as #data")
used in PutMulti to enforce that number of keys should equal with number of data
Functions ¶
func Put ¶
Put stores data into bucket under with filrname "key". if returns a url that can be used to read this data what if data already exist?
func PutMulti ¶
PutMulti stores multiple item in cloud storage in one stroke. It use goroutine to do multitasking It will return error[0] with ErrNumberNotMatch if the #key isn't same as #datas It will return a slice of strings as url if that item is stored successfully. But if there is an error to store that item, then an error will be put in corresponding space.
Types ¶
This section is empty.