gcloud

package
v0.0.0-...-ee4cc29 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 DeleteFromBucket(fileName string) error

func GetCoverUrl

func GetCoverUrl(id string, platform gore.Platform) (string, error)

func GetFileUrl

func GetFileUrl(fileName string) string

func InitDatabase

func InitDatabase() (*sql.DB, error)

func InitLogger

func InitLogger() error

InitLogger Initializes the logger based on configuration

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 SaveFile

func SaveFile(id string, platform gore.Platform) error

func UploadToBucket

func UploadToBucket(fileName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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