1
0
Fork 0

refactor: migration Negroni from codegangsta to urfave

This commit is contained in:
Fernandez Ludovic 2017-07-19 12:02:51 +02:00 committed by Ludovic Fernandez
parent c36e0b3b06
commit 40d9058bb6
22 changed files with 16 additions and 20 deletions

View file

@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/codegangsta/negroni"
"github.com/urfave/negroni"
"github.com/vulcand/oxy/utils"
)

View file

@ -7,9 +7,9 @@ import (
"strings"
"github.com/abbot/go-http-auth"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/log"
"github.com/containous/traefik/types"
"github.com/urfave/negroni"
)
// Authenticator is a middleware that provides HTTP basic and digest authentication

View file

@ -8,10 +8,10 @@ import (
"os"
"testing"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/testhelpers"
"github.com/containous/traefik/types"
"github.com/stretchr/testify/assert"
"github.com/urfave/negroni"
)
func TestAuthUsersFromFile(t *testing.T) {

View file

@ -7,9 +7,9 @@ import (
"strconv"
"testing"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/types"
"github.com/stretchr/testify/assert"
"github.com/urfave/negroni"
)
func TestErrorPage(t *testing.T) {

View file

@ -5,9 +5,9 @@ import (
"net"
"net/http"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/log"
"github.com/pkg/errors"
"github.com/urfave/negroni"
)
// IPWhitelister is a middleware that provides Checks of the Requesting IP against a set of Whitelists

View file

@ -7,10 +7,10 @@ import (
"net/http/httptest"
"testing"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/testhelpers"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/urfave/negroni"
)
func TestNewIPWhitelister(t *testing.T) {

View file

@ -8,13 +8,13 @@ import (
"strings"
"testing"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/testhelpers"
"github.com/containous/traefik/types"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
dto "github.com/prometheus/client_model/go"
"github.com/stretchr/testify/assert"
"github.com/urfave/negroni"
)
func TestPrometheus(t *testing.T) {

View file

@ -3,8 +3,8 @@ package middlewares
import (
"net/http"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/log"
"github.com/urfave/negroni"
)
// RecoverHandler recovers from a panic in http handlers

View file

@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"
"github.com/codegangsta/negroni"
"github.com/urfave/negroni"
)
func TestRecoverHandler(t *testing.T) {