Browse Source

add makefile

jiantao 4 years ago
parent
commit
c5ace061d5
5 changed files with 9 additions and 4 deletions
  1. 1 0
      .gitignore
  2. 1 0
      go.mod
  3. 2 0
      go.sum
  4. 0 4
      main.go
  5. 5 0
      makefile

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
1
+miads

+ 1 - 0
go.mod

@@ -7,6 +7,7 @@ require (
7 7
 	github.com/agiledragon/gomonkey v2.0.1+incompatible
8 8
 	github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
9 9
 	github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect
10
+	github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6
10 11
 	github.com/gin-gonic/gin v1.6.3
11 12
 	github.com/gomodule/redigo v2.0.0+incompatible
12 13
 	github.com/jarcoal/httpmock v1.0.5

+ 2 - 0
go.sum

@@ -9,6 +9,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
9 9
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
10 10
 github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 h1:Ghm4eQYC0nEPnSJdVkTrXpu9KtoVCSo1hg7mtI7G9KU=
11 11
 github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239/go.mod h1:Gdwt2ce0yfBxPvZrHkprdPPTTS3N5rwmLE8T22KBXlw=
12
+github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6 h1:6VSn3hB5U5GeA6kQw4TwWIWbOhtvR2hmbBJnTOtqTWc=
13
+github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6/go.mod h1:YxOVT5+yHzKvwhsiSIWmbAYM3Dr9AEEbER2dVayfBkg=
12 14
 github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
13 15
 github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
14 16
 github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14=

+ 0 - 4
main.go

@@ -1,17 +1,13 @@
1 1
 package main
2 2
 
3 3
 import (
4
-	"context"
5 4
 	"fmt"
6 5
 	"github.com/gin-gonic/gin"
7 6
 	rotatelogs "github.com/lestrrat-go/file-rotatelogs"
8 7
 	"io"
9 8
 	"miads/adslib"
10 9
 	"miads/adslib/ads_redis"
11
-	"net/http"
12 10
 	"os"
13
-	"os/signal"
14
-	"syscall"
15 11
 	"time"
16 12
 
17 13
 	"github.com/fvbock/endless"

+ 5 - 0
makefile

@@ -0,0 +1,5 @@
1
+miads:*.go
2
+	go build .
3
+
4
+clean:
5
+	rm miads