Rename database package to sqlite

This commit is contained in:
TwinProduction
2021-07-18 16:13:05 -04:00
committed by Chris
parent aac72e3741
commit c700154f5e
7 changed files with 48 additions and 48 deletions

View File

@ -6,8 +6,8 @@ import (
"time"
"github.com/TwinProduction/gatus/storage/store"
"github.com/TwinProduction/gatus/storage/store/database"
"github.com/TwinProduction/gatus/storage/store/memory"
"github.com/TwinProduction/gatus/storage/store/sqlite"
)
var (
@ -53,7 +53,7 @@ func Initialize(cfg *Config) error {
ctx, cancelFunc = context.WithCancel(context.Background())
switch cfg.Type {
case TypeSQLite:
provider, err = database.NewStore(string(cfg.Type), cfg.File)
provider, err = sqlite.NewStore(string(cfg.Type), cfg.File)
if err != nil {
return err
}