File tree Expand file tree Collapse file tree 8 files changed +28
-20
lines changed Expand file tree Collapse file tree 8 files changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ package controller
66
77import (
88 "fmt"
9+ "net/http"
10+ "strings"
11+
912 "github.com/clivern/hippo"
1013 "github.com/clivern/rabbit/internal/app/model"
1114 "github.com/clivern/rabbit/pkg"
1215 "github.com/gin-gonic/gin"
1316 "github.com/spf13/viper"
1417 "go.uber.org/zap"
15- "net/http"
16- "strings"
1718)
1819
1920// GithubListener controller
Original file line number Diff line number Diff line change 55package controller
66
77import (
8+ "net/http"
9+
810 "github.com/clivern/hippo"
911 "github.com/gin-gonic/gin"
1012 "github.com/spf13/viper"
11- "net/http"
1213)
1314
1415// HealthCheck controller
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ package controller
66
77import (
88 "fmt"
9- "github.com/gin-gonic/gin"
10- "github.com/spf13/viper"
119 "net/http"
1210 "strings"
11+
12+ "github.com/gin-gonic/gin"
13+ "github.com/spf13/viper"
1314)
1415
1516// Index controller
Original file line number Diff line number Diff line change @@ -6,17 +6,18 @@ package controller
66
77import (
88 "fmt"
9+ "net/http"
10+ "sort"
11+ "strings"
12+ "time"
13+
914 "github.com/clivern/hippo"
1015 "github.com/clivern/rabbit/internal/app/model"
1116 "github.com/clivern/rabbit/internal/app/module"
1217 "github.com/clivern/rabbit/pkg"
1318 "github.com/gin-gonic/gin"
1419 "github.com/spf13/viper"
1520 "go.uber.org/zap"
16- "net/http"
17- "sort"
18- "strings"
19- "time"
2021)
2122
2223// CreateProject controller
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ package controller
66
77import (
88 "fmt"
9+ "time"
10+
911 "github.com/clivern/hippo"
1012 "github.com/clivern/rabbit/internal/app/model"
1113 "github.com/clivern/rabbit/internal/app/module"
1214 "github.com/spf13/viper"
1315 "go.uber.org/zap"
14- "time"
1516)
1617
1718// Worker runs async jobs
Original file line number Diff line number Diff line change 55package middleware
66
77import (
8+ "strings"
9+
810 "github.com/clivern/hippo"
911 "github.com/gin-gonic/gin"
10- "strings"
1112)
1213
1314// Correlation middleware
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ package middleware
77import (
88 "bytes"
99 "fmt"
10+ "io/ioutil"
11+ "time"
12+
1013 "github.com/clivern/hippo"
1114 "github.com/gin-gonic/gin"
1215 "github.com/spf13/viper"
1316 "go.uber.org/zap"
14- "io/ioutil"
15- "time"
1617)
1718
1819// Logger middleware
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ import (
88 "bytes"
99 "flag"
1010 "fmt"
11+ "io"
12+ "io/ioutil"
13+ "net/http"
14+ "os"
15+ "path/filepath"
16+ "strconv"
17+ "strings"
18+
1119 "github.com/clivern/hippo"
1220 "github.com/clivern/rabbit/internal/app/cmd"
1321 "github.com/clivern/rabbit/internal/app/controller"
@@ -16,13 +24,6 @@ import (
1624 "github.com/drone/envsubst"
1725 "github.com/gin-gonic/gin"
1826 "github.com/spf13/viper"
19- "io"
20- "io/ioutil"
21- "net/http"
22- "os"
23- "path/filepath"
24- "strconv"
25- "strings"
2627)
2728
2829func main () {
You can’t perform that action at this time.
0 commit comments