Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrDownloadFailed = DictError("error on image download") ErrCloseReqBodyFailed = DictError("error on closing a requests response") ErrPDFGenerationFailed = DictError("error during pds generation") )
View Source
const ( ErrClientCreation = FileStorageErr("error on file storage client creation") ErrFileSave = FileStorageErr("error on saving file to file storage") ErrFileRetrieval = FileStorageErr("error on retrieving file from file storage") ErrFileLinkRetrieval = FileStorageErr("error on retrieving file link from file storage") )
View Source
const ErrLogSetup = LogErr("error setting up logger")
Variables ¶
This section is empty.
Functions ¶
func DefaultErrorMessage ¶
Types ¶
type BookDownloader ¶
type BookDownloader struct {
// contains filtered or unexported fields
}
func NewBookDownloader ¶
func NewBookDownloader(urlMaskFunc func(int) string) BookDownloader
type FileStorage ¶
type FileStorageErr ¶
type FileStorageErr string
func (FileStorageErr) Error ¶
func (e FileStorageErr) Error() string
type MinioFileStorage ¶
type MinioFileStorage struct {
// contains filtered or unexported fields
}
func NewMinioFileStorage ¶
func NewMinioFileStorage(endpoint, accessKey, secretKey string, ssl bool) (MinioFileStorage, error)
func (*MinioFileStorage) Get ¶
func (mfs *MinioFileStorage) Get(bucket, location string) (io.Reader, error)
type MySQLConnector ¶
type MySQLConnector struct {
// contains filtered or unexported fields
}
func NewMySQLConnector ¶
func NewMySQLConnector(address string, port int, dbName, user, password string) MySQLConnector
Click to show internal directories.
Click to hide internal directories.