feat(macaron): upgrades macaron version

This commit is contained in:
bergquist
2016-01-13 15:11:23 +01:00
parent 5de69b288f
commit 4fe72ebf69
163 changed files with 10334 additions and 6847 deletions

View File

@@ -4,7 +4,7 @@ import (
"net/url"
"strings"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
m "github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting"

View File

@@ -20,7 +20,7 @@ import (
"net/http"
"time"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/setting"
)

View File

@@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/components/apikeygen"

View File

@@ -7,7 +7,7 @@ import (
"path/filepath"
"testing"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
"github.com/grafana/grafana/pkg/bus"
m "github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting"

View File

@@ -3,7 +3,7 @@ package middleware
import (
"fmt"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/log"
m "github.com/grafana/grafana/pkg/models"

View File

@@ -3,12 +3,12 @@ package middleware
import (
"time"
"github.com/Unknwon/macaron"
"github.com/macaron-contrib/session"
_ "github.com/macaron-contrib/session/memcache"
_ "github.com/macaron-contrib/session/mysql"
_ "github.com/macaron-contrib/session/postgres"
_ "github.com/macaron-contrib/session/redis"
"gopkg.in/macaron.v1"
"github.com/go-macaron/session"
_ "github.com/go-macaron/session/memcache"
_ "github.com/go-macaron/session/mysql"
_ "github.com/go-macaron/session/postgres"
_ "github.com/go-macaron/session/redis"
)
const (

View File

@@ -3,11 +3,12 @@ package middleware
import (
"strings"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
"github.com/go-macaron/gzip"
)
func Gziper() macaron.Handler {
macaronGziper := macaron.Gziper()
macaronGziper := gzip.Gziper()
return func(ctx *macaron.Context) {
requestPath := ctx.Req.URL.RequestURI()

View File

@@ -3,7 +3,7 @@ package middleware
import (
"strings"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
"github.com/grafana/grafana/pkg/setting"
)