File tree Expand file tree Collapse file tree 4 files changed +19
-20
lines changed Expand file tree Collapse file tree 4 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -58,4 +58,4 @@ release:
58
58
59
59
swagger :
60
60
GO111MODULE=on go get github.com/swaggo/swag/cmd/swag
61
- cd pkg/api && $$(go env GOPATH ) /bin/swag init
61
+ cd pkg/api && $$(go env GOPATH ) /bin/swag init -g server.go
Original file line number Diff line number Diff line change 1
1
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
2
2
// This file was generated by swaggo/swag at
3
- // 2019-08-07 15:15:38.193457 +0300 EEST m=+0.022158637
3
+ // 2019-08-07 15:19:14.198371 +0300 EEST m=+0.021097345
4
4
5
5
package docs
6
6
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,6 +20,20 @@ import (
20
20
"go.uber.org/zap"
21
21
)
22
22
23
+ // @title Podinfo API
24
+ // @version 2.0
25
+ // @description Go microservice template for Kubernetes.
26
+
27
+ // @contact.name Source Code
28
+ // @contact.url https://github.com/stefanprodan/podinfo
29
+
30
+ // @license.name MIT License
31
+ // @license.url https://github.com/stefanprodan/podinfo/blob/master/LICENSE
32
+
33
+ // @host localhost:9898
34
+ // @BasePath /
35
+ // @schemes http https
36
+
23
37
var (
24
38
healthy int32
25
39
ready int32
@@ -222,3 +236,6 @@ func (s *Server) printRoutes() {
222
236
return nil
223
237
})
224
238
}
239
+
240
+ type ArrayResponse []string
241
+ type MapResponse map [string ]string
You can’t perform that action at this time.
0 commit comments