File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 3
3
branch = " master"
4
4
5
5
[[constraint ]]
6
- name = " github.com/buaazp/fasthttprouter "
6
+ name = " github.com/fasthttp/router "
7
7
branch = " master"
8
8
9
9
[[constraint ]]
Original file line number Diff line number Diff line change 9
9
"syscall"
10
10
"time"
11
11
12
- "github.com/buaazp/fasthttprouter "
12
+ "github.com/fasthttp/router "
13
13
"github.com/savsgio/go-logger"
14
14
"github.com/valyala/fasthttp"
15
15
)
@@ -22,15 +22,15 @@ func New(cfg *Config) *Atreugo {
22
22
cfg .LogLevel = logger .INFO
23
23
}
24
24
25
- router := fasthttprouter .New ()
25
+ r := router .New ()
26
26
27
- handler := router .Handler
27
+ handler := r .Handler
28
28
if cfg .Compress {
29
29
handler = fasthttp .CompressHandler (handler )
30
30
}
31
31
32
32
server := & Atreugo {
33
- router : router ,
33
+ router : r ,
34
34
server : & fasthttp.Server {
35
35
Handler : handler ,
36
36
Name : "AtreugoFastHTTPServer" ,
Original file line number Diff line number Diff line change 1
1
package atreugo
2
2
3
3
import (
4
- "github.com/buaazp/fasthttprouter "
4
+ "github.com/fasthttp/router "
5
5
"github.com/savsgio/go-logger"
6
6
"github.com/valyala/fasthttp"
7
7
)
@@ -25,7 +25,7 @@ type Config struct {
25
25
// Atreugo struct for make up a server
26
26
type Atreugo struct {
27
27
server * fasthttp.Server
28
- router * fasthttprouter .Router
28
+ router * router .Router
29
29
middlewares []Middleware
30
30
log * logger.Logger
31
31
cfg * Config
You can’t perform that action at this time.
0 commit comments