Versions in this module Expand all Collapse all v0 v0.2.1 Oct 31, 2021 v0.2.0 Oct 31, 2021 Changes in this version + const CloudStorageURL + func AppEnv() string + func CreateBlankFileToGCS(ctx context.Context, fileID string, fileEntity string, fileRequest FileRequest) (string, error) + func CreateBlankFileToPublicGCS(ctx context.Context, fileID string, fileEntity string, fileRequest FileRequest) (string, error) + func CreateFileToGCS(ctx context.Context, bucketName, filePath, contentType string, contents []byte) error + func CreateTask(ctx context.Context, name string, eta time.Time, message string) (*taskspb.Task, error) + func GetFileFromGCS(ctx context.Context, bucketName, filePath string) ([]byte, error) + func GetGCSSignedURL(ctx context.Context, bucket string, key string, method string, ...) (string, error) + func GetPublicBackgroundImageURL(id string) string + func GetPublicBackgroundMusicURL(id string) string + func LessonCompressingTaskName(lessonID int64, currentTime time.Time, requestID string) string + func LocationID() string + func MaterialBucketName() string + func OriginURL() string + func ProjectID() string + func PublicBucketName() string + func ServiceAccountID() string + func ServiceAccountName() string + func SetAppEnv(appEnv string) error + func StorageObjectFilePath(entity string, id string, extension string) string + type EntityBelongToFile struct + UserID int64 + type FileRequest struct + ContentType string + Entity string + Extension string + ID string + type SignedURL struct + FileID string + SignedURL string + type SignedURLs struct + SignedURLs []SignedURL + type StorageObjectRequest struct + FileRequests []FileRequest + LessonID int64