1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-03-17 21:18:19 +02:00

Chore: Update internal/storage import paths

This commit is contained in:
Ralph Slooten 2023-09-25 19:25:45 +13:00
parent 009a7deaa1
commit 737cff5a96
11 changed files with 16 additions and 16 deletions

View File

@ -24,8 +24,8 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go test ./storage ./server ./internal/tools -v
- run: go test ./storage -bench=.
- run: go test ./internal/storage ./server ./internal/tools -v
- run: go test ./internal/storage -bench=.
# build the assets
- uses: actions/setup-node@v3

View File

@ -9,9 +9,9 @@ import (
"github.com/axllent/mailpit/config"
"github.com/axllent/mailpit/internal/logger"
"github.com/axllent/mailpit/internal/storage"
"github.com/axllent/mailpit/server"
"github.com/axllent/mailpit/server/smtpd"
"github.com/axllent/mailpit/storage"
"github.com/spf13/cobra"
)
@ -142,7 +142,7 @@ func init() {
// Load settings from environment
func initConfigFromEnv() {
// defaults from envars if provided
// inherit from environment if provided
if len(os.Getenv("MP_DATA_FILE")) > 0 {
config.DataFile = os.Getenv("MP_DATA_FILE")
}

View File

@ -6,8 +6,8 @@ import (
"strings"
"github.com/PuerkitoBio/goquery"
"github.com/axllent/mailpit/internal/storage"
"github.com/axllent/mailpit/internal/tools"
"github.com/axllent/mailpit/storage"
)
var linkRe = regexp.MustCompile(`(?m)\b(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:'!\/~+#-]*[\w@?^=%&\/~+#-])`)

View File

@ -14,9 +14,9 @@ import (
"github.com/axllent/mailpit/internal/htmlcheck"
"github.com/axllent/mailpit/internal/linkcheck"
"github.com/axllent/mailpit/internal/logger"
"github.com/axllent/mailpit/internal/storage"
"github.com/axllent/mailpit/internal/tools"
"github.com/axllent/mailpit/server/smtpd"
"github.com/axllent/mailpit/storage"
"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
)

View File

@ -7,8 +7,8 @@ import (
"runtime"
"github.com/axllent/mailpit/config"
"github.com/axllent/mailpit/internal/storage"
"github.com/axllent/mailpit/internal/updater"
"github.com/axllent/mailpit/storage"
)
// Response includes the current and latest Mailpit version, database info, and memory usage

View File

@ -3,7 +3,7 @@ package apiv1
import (
"github.com/axllent/mailpit/internal/htmlcheck"
"github.com/axllent/mailpit/internal/linkcheck"
"github.com/axllent/mailpit/storage"
"github.com/axllent/mailpit/internal/storage"
)
// MessagesSummary is a summary of a list of messages

View File

@ -11,7 +11,7 @@ import (
"strings"
"github.com/axllent/mailpit/internal/logger"
"github.com/axllent/mailpit/storage"
"github.com/axllent/mailpit/internal/storage"
"github.com/disintegration/imaging"
"github.com/gorilla/mux"
"github.com/jhillyerd/enmime"

View File

@ -16,10 +16,10 @@ import (
"github.com/axllent/mailpit/config"
"github.com/axllent/mailpit/internal/logger"
"github.com/axllent/mailpit/internal/storage"
"github.com/axllent/mailpit/server/apiv1"
"github.com/axllent/mailpit/server/handlers"
"github.com/axllent/mailpit/server/websockets"
"github.com/axllent/mailpit/storage"
"github.com/gorilla/mux"
)

View File

@ -13,8 +13,8 @@ import (
"github.com/axllent/mailpit/config"
"github.com/axllent/mailpit/internal/logger"
"github.com/axllent/mailpit/internal/storage"
"github.com/axllent/mailpit/server/apiv1"
"github.com/axllent/mailpit/storage"
"github.com/jhillyerd/enmime"
)

View File

@ -11,7 +11,7 @@ import (
"github.com/axllent/mailpit/config"
"github.com/axllent/mailpit/internal/logger"
"github.com/axllent/mailpit/storage"
"github.com/axllent/mailpit/internal/storage"
"github.com/mhale/smtpd"
uuid "github.com/satori/go.uuid"
)

View File

@ -732,7 +732,7 @@
"format": "int64"
}
},
"x-go-package": "github.com/axllent/mailpit/storage"
"x-go-package": "github.com/axllent/mailpit/internal/storage"
},
"DeleteRequest": {
"description": "Delete request",
@ -1058,7 +1058,7 @@
}
}
},
"x-go-package": "github.com/axllent/mailpit/storage"
"x-go-package": "github.com/axllent/mailpit/internal/storage"
},
"MessageHeaders": {
"description": "Message headers",
@ -1139,7 +1139,7 @@
}
}
},
"x-go-package": "github.com/axllent/mailpit/storage"
"x-go-package": "github.com/axllent/mailpit/internal/storage"
},
"MessagesSummary": {
"description": "MessagesSummary is a summary of a list of messages",
@ -1335,4 +1335,4 @@
}
}
}
}
}