modules: add v2 support

This commit is contained in:
Nicola Murino
2021-06-26 07:31:41 +02:00
parent 93dfb03eaf
commit 076b2f0ee0
129 changed files with 454 additions and 446 deletions

View File

@@ -7,9 +7,9 @@ import (
"github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/render"
"github.com/drakkan/sftpgo/common"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/metrics"
"github.com/drakkan/sftpgo/v2/common"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/metrics"
)
func initializeRouter(enableProfiler bool) {

View File

@@ -14,9 +14,9 @@ import (
"github.com/go-chi/chi/v5"
"github.com/drakkan/sftpgo/common"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/v2/common"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/utils"
)
const (

View File

@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/drakkan/sftpgo/common"
"github.com/drakkan/sftpgo/v2/common"
)
const (