Skip to content

Commit

Permalink
Change buaazp fasthttprouter to fasthttp/router
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Andres Virviescas Santana committed Oct 15, 2018
1 parent 5e776b5 commit c90bc4e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
branch = "master"

[[constraint]]
name = "github.com/buaazp/fasthttprouter"
name = "github.com/fasthttp/router"
branch = "master"

[[constraint]]
Expand Down
8 changes: 4 additions & 4 deletions atreugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
"time"

"github.com/buaazp/fasthttprouter"
"github.com/fasthttp/router"
"github.com/savsgio/go-logger"
"github.com/valyala/fasthttp"
)
Expand All @@ -22,15 +22,15 @@ func New(cfg *Config) *Atreugo {
cfg.LogLevel = logger.INFO
}

router := fasthttprouter.New()
r := router.New()

handler := router.Handler
handler := r.Handler
if cfg.Compress {
handler = fasthttp.CompressHandler(handler)
}

server := &Atreugo{
router: router,
router: r,
server: &fasthttp.Server{
Handler: handler,
Name: "AtreugoFastHTTPServer",
Expand Down
4 changes: 2 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package atreugo

import (
"github.com/buaazp/fasthttprouter"
"github.com/fasthttp/router"
"github.com/savsgio/go-logger"
"github.com/valyala/fasthttp"
)
Expand All @@ -25,7 +25,7 @@ type Config struct {
// Atreugo struct for make up a server
type Atreugo struct {
server *fasthttp.Server
router *fasthttprouter.Router
router *router.Router
middlewares []Middleware
log *logger.Logger
cfg *Config
Expand Down

0 comments on commit c90bc4e

Please sign in to comment.