Browse Source

vgo as dep tool

Paul 6 years ago
parent
commit
037eea5b14
10 changed files with 101 additions and 160 deletions
  1. 0
    122
      Gopkg.lock
  2. 0
    38
      Gopkg.toml
  3. 1
    0
      go.mod
  4. 14
    0
      middleware/auth/go.mod
  5. 21
    0
      middleware/auth/go.sum
  6. 12
    0
      middleware/cors/go.mod
  7. 17
    0
      middleware/cors/go.sum
  8. 14
    0
      request/go.mod
  9. 21
    0
      request/go.sum
  10. 1
    0
      utils/go.mod

+ 0
- 122
Gopkg.lock View File

@@ -1,122 +0,0 @@
1
-# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
2
-
3
-
4
-[[projects]]
5
-  name = "github.com/dgrijalva/jwt-go"
6
-  packages = ["."]
7
-  revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"
8
-  version = "v3.2.0"
9
-
10
-[[projects]]
11
-  name = "github.com/gin-contrib/cors"
12
-  packages = ["."]
13
-  revision = "cf4846e6a636a76237a28d9286f163c132e841bc"
14
-  version = "v1.2"
15
-
16
-[[projects]]
17
-  branch = "master"
18
-  name = "github.com/gin-contrib/sse"
19
-  packages = ["."]
20
-  revision = "22d885f9ecc78bf4ee5d72b937e4bbcdc58e8cae"
21
-
22
-[[projects]]
23
-  branch = "master"
24
-  name = "github.com/gin-gonic/gin"
25
-  packages = [
26
-    ".",
27
-    "binding",
28
-    "json",
29
-    "render"
30
-  ]
31
-  revision = "bf7803815b0baa22ff7a10457932882dfbf09925"
32
-
33
-[[projects]]
34
-  name = "github.com/go-redis/redis"
35
-  packages = [
36
-    ".",
37
-    "internal",
38
-    "internal/consistenthash",
39
-    "internal/hashtag",
40
-    "internal/pool",
41
-    "internal/proto",
42
-    "internal/singleflight",
43
-    "internal/util"
44
-  ]
45
-  revision = "83fb42932f6145ce52df09860384a4653d2d332a"
46
-  version = "v6.12.0"
47
-
48
-[[projects]]
49
-  name = "github.com/golang/protobuf"
50
-  packages = ["proto"]
51
-  revision = "925541529c1fa6821df4e44ce2723319eb2be768"
52
-  version = "v1.0.0"
53
-
54
-[[projects]]
55
-  name = "github.com/json-iterator/go"
56
-  packages = ["."]
57
-  revision = "ca39e5af3ece67bbcda3d0f4f56a8e24d9f2dad4"
58
-  version = "1.1.3"
59
-
60
-[[projects]]
61
-  name = "github.com/mattn/go-isatty"
62
-  packages = ["."]
63
-  revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39"
64
-  version = "v0.0.3"
65
-
66
-[[projects]]
67
-  name = "github.com/modern-go/concurrent"
68
-  packages = ["."]
69
-  revision = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94"
70
-  version = "1.0.3"
71
-
72
-[[projects]]
73
-  name = "github.com/modern-go/reflect2"
74
-  packages = ["."]
75
-  revision = "1df9eeb2bb81f327b96228865c5687bc2194af3f"
76
-  version = "1.0.0"
77
-
78
-[[projects]]
79
-  name = "github.com/sirupsen/logrus"
80
-  packages = ["."]
81
-  revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
82
-  version = "v1.0.5"
83
-
84
-[[projects]]
85
-  name = "github.com/ugorji/go"
86
-  packages = ["codec"]
87
-  revision = "b4c50a2b199d93b13dc15e78929cfb23bfdf21ab"
88
-  version = "v1.1.1"
89
-
90
-[[projects]]
91
-  branch = "master"
92
-  name = "golang.org/x/crypto"
93
-  packages = ["ssh/terminal"]
94
-  revision = "b49d69b5da943f7ef3c9cf91c8777c1f78a0cc3c"
95
-
96
-[[projects]]
97
-  branch = "master"
98
-  name = "golang.org/x/sys"
99
-  packages = [
100
-    "unix",
101
-    "windows"
102
-  ]
103
-  revision = "79b0c6888797020a994db17c8510466c72fe75d9"
104
-
105
-[[projects]]
106
-  name = "gopkg.in/go-playground/validator.v8"
107
-  packages = ["."]
108
-  revision = "5f1438d3fca68893a817e4a66806cea46a9e4ebf"
109
-  version = "v8.18.2"
110
-
111
-[[projects]]
112
-  name = "gopkg.in/yaml.v2"
113
-  packages = ["."]
114
-  revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183"
115
-  version = "v2.2.1"
116
-
117
-[solve-meta]
118
-  analyzer-name = "dep"
119
-  analyzer-version = 1
120
-  inputs-digest = "f39a3af36dc118d9ce3e7647ae989cd30486ef9729d721fe106bbb7cfaf6e4cb"
121
-  solver-name = "gps-cdcl"
122
-  solver-version = 1

+ 0
- 38
Gopkg.toml View File

@@ -1,38 +0,0 @@
1
-# Gopkg.toml example
2
-#
3
-# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4
-# for detailed Gopkg.toml documentation.
5
-#
6
-# required = ["github.com/user/thing/cmd/thing"]
7
-# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8
-#
9
-# [[constraint]]
10
-#   name = "github.com/user/project"
11
-#   version = "1.0.0"
12
-#
13
-# [[constraint]]
14
-#   name = "github.com/user/project2"
15
-#   branch = "dev"
16
-#   source = "github.com/myfork/project2"
17
-#
18
-# [[override]]
19
-#   name = "github.com/x/y"
20
-#   version = "2.4.0"
21
-#
22
-# [prune]
23
-#   non-go = false
24
-#   go-tests = true
25
-#   unused-packages = true
26
-
27
-
28
-[[constraint]]
29
-  name = "github.com/gin-gonic/gin"
30
-  branch = "master"
31
-
32
-[prune]
33
-  go-tests = true
34
-  unused-packages = true
35
-
36
-[[constraint]]
37
-  name = "github.com/gin-contrib/cors"
38
-  version = "1.2.0"

+ 1
- 0
go.mod View File

@@ -0,0 +1 @@
1
+module git.links123.net/links123.com/pkg

+ 14
- 0
middleware/auth/go.mod View File

@@ -0,0 +1,14 @@
1
+module git.links123.net/links123.com/pkg/middleware/auth
2
+
3
+require (
4
+	git.links123.net/links123.com/pkg v0.0.0-20180730062323-41c11015b7a7
5
+	github.com/dgrijalva/jwt-go v3.2.0+incompatible
6
+	github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 // indirect
7
+	github.com/gin-gonic/gin v1.3.0
8
+	github.com/go-redis/redis v6.14.1+incompatible
9
+	github.com/golang/protobuf v1.2.0 // indirect
10
+	github.com/mattn/go-isatty v0.0.4 // indirect
11
+	github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 // indirect
12
+	gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
13
+	gopkg.in/yaml.v2 v2.2.1 // indirect
14
+)

+ 21
- 0
middleware/auth/go.sum View File

@@ -0,0 +1,21 @@
1
+git.links123.net/links123.com/pkg v0.0.0-20180730062323-41c11015b7a7 h1:6a3UFovuyG8FpN6rBjrYLe5Rf5yNWQIIEOpx02iOEw8=
2
+git.links123.net/links123.com/pkg v0.0.0-20180730062323-41c11015b7a7/go.mod h1:qTpTu+0bPvaF2g9MGg8yn7aDIZKKk/7OzitnQmC+M68=
3
+github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
4
+github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
5
+github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 h1:AzN37oI0cOS+cougNAV9szl6CVoj2RYwzS3DpUQNtlY=
6
+github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
7
+github.com/gin-gonic/gin v1.3.0 h1:kCmZyPklC0gVdL728E6Aj20uYBJV93nj/TkwBTKhFbs=
8
+github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y=
9
+github.com/go-redis/redis v6.14.1+incompatible h1:kSJohAREGMr344uMa8PzuIg5OU6ylCbyDkWkkNOfEik=
10
+github.com/go-redis/redis v6.14.1+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
11
+github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
12
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
13
+github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
14
+github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
15
+github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 h1:CZORS/4d6i+5FKSAtbRIjlElV2BAFYv/bokcaEVUimQ=
16
+github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
17
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
18
+gopkg.in/go-playground/validator.v8 v8.18.2 h1:lFB4DoMU6B626w8ny76MV7VX6W2VHct2GVOI3xgiMrQ=
19
+gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=
20
+gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
21
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

+ 12
- 0
middleware/cors/go.mod View File

@@ -0,0 +1,12 @@
1
+module git.links123.net/links123.com/pkg/middleware/cors
2
+
3
+require (
4
+	github.com/gin-contrib/cors v0.0.0-20180912121935-a3af05a9b13e
5
+	github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 // indirect
6
+	github.com/gin-gonic/gin v1.3.0
7
+	github.com/golang/protobuf v1.2.0 // indirect
8
+	github.com/mattn/go-isatty v0.0.4 // indirect
9
+	github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 // indirect
10
+	gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
11
+	gopkg.in/yaml.v2 v2.2.1 // indirect
12
+)

+ 17
- 0
middleware/cors/go.sum View File

@@ -0,0 +1,17 @@
1
+github.com/gin-contrib/cors v0.0.0-20180912121935-a3af05a9b13e h1:j3eUUIqSQTxePdkqPb27FhbCYGngm/7x6hGjf5dskUk=
2
+github.com/gin-contrib/cors v0.0.0-20180912121935-a3af05a9b13e/go.mod h1:cw+u9IsAkC16e42NtYYVCLsHYXE98nB3M7Dr9mLSeH4=
3
+github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 h1:AzN37oI0cOS+cougNAV9szl6CVoj2RYwzS3DpUQNtlY=
4
+github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
5
+github.com/gin-gonic/gin v1.3.0 h1:kCmZyPklC0gVdL728E6Aj20uYBJV93nj/TkwBTKhFbs=
6
+github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y=
7
+github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
8
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
9
+github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
10
+github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
11
+github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 h1:CZORS/4d6i+5FKSAtbRIjlElV2BAFYv/bokcaEVUimQ=
12
+github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
13
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
14
+gopkg.in/go-playground/validator.v8 v8.18.2 h1:lFB4DoMU6B626w8ny76MV7VX6W2VHct2GVOI3xgiMrQ=
15
+gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=
16
+gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
17
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

+ 14
- 0
request/go.mod View File

@@ -0,0 +1,14 @@
1
+module git.links123.net/links123.com/pkg/request
2
+
3
+require (
4
+	github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 // indirect
5
+	github.com/gin-gonic/gin v1.3.0
6
+	github.com/golang/protobuf v1.2.0 // indirect
7
+	github.com/mattn/go-isatty v0.0.4 // indirect
8
+	github.com/sirupsen/logrus v1.0.6
9
+	github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 // indirect
10
+	golang.org/x/crypto v0.0.0-20180910181607-0e37d006457b // indirect
11
+	golang.org/x/sys v0.0.0-20180918153733-ee1b12c67af4 // indirect
12
+	gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
13
+	gopkg.in/yaml.v2 v2.2.1 // indirect
14
+)

+ 21
- 0
request/go.sum View File

@@ -0,0 +1,21 @@
1
+github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 h1:AzN37oI0cOS+cougNAV9szl6CVoj2RYwzS3DpUQNtlY=
2
+github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
3
+github.com/gin-gonic/gin v1.3.0 h1:kCmZyPklC0gVdL728E6Aj20uYBJV93nj/TkwBTKhFbs=
4
+github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y=
5
+github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
6
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
7
+github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
8
+github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
9
+github.com/sirupsen/logrus v1.0.6 h1:hcP1GmhGigz/O7h1WVUM5KklBp1JoNS9FggWKdj/j3s=
10
+github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc=
11
+github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 h1:CZORS/4d6i+5FKSAtbRIjlElV2BAFYv/bokcaEVUimQ=
12
+github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
13
+golang.org/x/crypto v0.0.0-20180910181607-0e37d006457b h1:2b9XGzhjiYsYPnKXoEfL7klWZQIt8IfyRCz62gCqqlQ=
14
+golang.org/x/crypto v0.0.0-20180910181607-0e37d006457b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
15
+golang.org/x/sys v0.0.0-20180918153733-ee1b12c67af4 h1:h8ij2QOL81JqJ/Vi5Ru+hl4a1yct8+XDGrgBhG0XbuE=
16
+golang.org/x/sys v0.0.0-20180918153733-ee1b12c67af4/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
17
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
18
+gopkg.in/go-playground/validator.v8 v8.18.2 h1:lFB4DoMU6B626w8ny76MV7VX6W2VHct2GVOI3xgiMrQ=
19
+gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=
20
+gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
21
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

+ 1
- 0
utils/go.mod View File

@@ -0,0 +1 @@
1
+module git.links123.net/links123.com/pkg/utils