mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 02:18:27 +00:00
Make the requestid an exported middleware
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/certificates/internal/requestid"
|
||||
"github.com/smallstep/certificates/middleware/requestid"
|
||||
"github.com/smallstep/certificates/templates"
|
||||
"github.com/smallstep/certificates/webhook"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"go.step.sm/crypto/x509util"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/certificates/internal/requestid"
|
||||
"github.com/smallstep/certificates/middleware/requestid"
|
||||
"github.com/smallstep/certificates/webhook"
|
||||
)
|
||||
|
||||
|
||||
2
ca/ca.go
2
ca/ca.go
@@ -29,8 +29,8 @@ import (
|
||||
"github.com/smallstep/certificates/cas/apiv1"
|
||||
"github.com/smallstep/certificates/db"
|
||||
"github.com/smallstep/certificates/internal/metrix"
|
||||
"github.com/smallstep/certificates/internal/requestid"
|
||||
"github.com/smallstep/certificates/logging"
|
||||
"github.com/smallstep/certificates/middleware/requestid"
|
||||
"github.com/smallstep/certificates/monitoring"
|
||||
"github.com/smallstep/certificates/scep"
|
||||
scepAPI "github.com/smallstep/certificates/scep/api"
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/smallstep/certificates/internal/requestid"
|
||||
"github.com/smallstep/certificates/internal/userid"
|
||||
"github.com/smallstep/certificates/middleware/requestid"
|
||||
)
|
||||
|
||||
// LoggerHandler creates a logger handler
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"github.com/newrelic/go-agent/v3/newrelic"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/smallstep/certificates/internal/requestid"
|
||||
"github.com/smallstep/certificates/logging"
|
||||
"github.com/smallstep/certificates/middleware/requestid"
|
||||
)
|
||||
|
||||
// Middleware is a function returns another http.Handler that wraps the given
|
||||
|
||||
Reference in New Issue
Block a user