2023-05-20 20:15:57 +02:00
|
|
|
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2023-05-17 13:35:13 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2023-08-22 20:56:32 +02:00
|
|
|
errDBNotConfigured = errors.New("Database connection string or database type were not set")
|
|
|
|
errUnsupportedDBType = errors.New("DBTYPE can only be one of postgres or sqlite3")
|
|
|
|
errDBConnFailed = errors.New("Failed to open a connection to the database")
|
|
|
|
errImportFailed = errors.New("Import of local breach data failed")
|
|
|
|
errHIBPSchedulerFailed = errors.New("HIBP requests scheduler failed")
|
2023-05-17 13:35:13 +02:00
|
|
|
)
|