Documentation
¶
Index ¶
- Constants
- func DeleteFile(fileName string)
- func DeleteFromBucket(fileName string) error
- func GetCoverUrl(id string, platform gore.Platform) (string, error)
- func GetFileUrl(fileName string) string
- func InitDatabase() (*sql.DB, error)
- func InitLogger() error
- func InitStorage() error
- func LogError(format string)
- func LogFatal(format string)
- func LogInfo(format string)
- func LogWarning(format string)
- func SaveFile(id string, platform gore.Platform) error
- func UploadToBucket(fileName string) error
Constants ¶
View Source
const ( Info = logging.Info Error = logging.Error Warning = logging.Warning Emergency = logging.Emergency )
Log levels constants
View Source
const (
LocalDataDirectory = "data"
)
View Source
const (
LogDirectory = "log"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
func DeleteFile(fileName string)
func DeleteFromBucket ¶
func GetFileUrl ¶
func InitDatabase ¶
func InitStorage ¶
func InitStorage() error
func LogError ¶
func LogError(format string)
LogError logs error message to both local and cloud loggers
func LogFatal ¶
func LogFatal(format string)
LogFatal logs fatal message to both local and cloud loggers
func LogInfo ¶
func LogInfo(format string)
LogInfo logs info message to both local and cloud loggers
func LogWarning ¶
func LogWarning(format string)
LogWarning logs warning message to both local and cloud loggers
func UploadToBucket ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.