Skip to content

Commit 530e652

Browse files
committed
fix elasticsearch
1 parent 8f19852 commit 530e652

File tree

5 files changed

+2
-317
lines changed

5 files changed

+2
-317
lines changed

dics/provider.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package dics
22

33
import (
4-
"github.com/crowdeco/skeleton/dics/modules"
54
"github.com/sarulabs/dingo/v4"
65
)
76

@@ -22,9 +21,5 @@ func (p *Provider) Load() error {
2221
return err
2322
}
2423

25-
if err := p.AddDefSlice(modules.Todo); err != nil {
26-
return err
27-
}
28-
2924
return nil
3025
}

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ require (
99
github.com/fatih/color v1.10.0
1010
github.com/gadelkareem/cachita v0.2.1
1111
github.com/gertd/go-pluralize v0.1.7
12-
github.com/go-ozzo/ozzo-validation/v4 v4.3.0
1312
github.com/golang/protobuf v1.4.3
1413
github.com/google/go-cmp v0.5.4 // indirect
1514
github.com/google/uuid v1.1.5
@@ -30,7 +29,7 @@ require (
3029
github.com/weekface/mgorus v0.0.0-20181029072001-239539fe10e4
3130
golang.org/x/mod v0.3.0
3231
golang.org/x/text v0.3.4 // indirect
33-
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d
32+
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d // indirect
3433
google.golang.org/grpc v1.33.2
3534
google.golang.org/protobuf v1.25.0
3635
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 // indirect

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ github.com/ThreeDotsLabs/watermill-amqp v1.1.0/go.mod h1:Qbu3JDlr6vIOxHJjhfsSHsr
4141
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
4242
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
4343
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
44-
github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496 h1:zV3ejI06GQ59hwDQAvmK1qxOQGB3WuVTRoY0okPTAv0=
45-
github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg=
4644
github.com/aws/aws-sdk-go v1.35.20/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
4745
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
4846
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
@@ -90,8 +88,6 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2
9088
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
9189
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
9290
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
93-
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es=
94-
github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew=
9591
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
9692
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
9793
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=

modules.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
modules:
2-
- module:todo

swaggers/apidocs.swagger.json

Lines changed: 1 addition & 305 deletions
Original file line numberDiff line numberDiff line change
@@ -15,312 +15,8 @@
1515
"produces": [
1616
"application/json"
1717
],
18-
"paths": {
19-
"/api/v1/todos": {
20-
"get": {
21-
"operationId": "Todos_GetPaginated",
22-
"responses": {
23-
"200": {
24-
"description": "A successful response.",
25-
"schema": {
26-
"$ref": "#/definitions/grpcsTodoPaginatedResponse"
27-
}
28-
},
29-
"default": {
30-
"description": "An unexpected error response.",
31-
"schema": {
32-
"$ref": "#/definitions/rpcStatus"
33-
}
34-
}
35-
},
36-
"parameters": [
37-
{
38-
"name": "page",
39-
"in": "query",
40-
"required": false,
41-
"type": "integer",
42-
"format": "int32"
43-
},
44-
{
45-
"name": "limit",
46-
"in": "query",
47-
"required": false,
48-
"type": "integer",
49-
"format": "int32"
50-
},
51-
{
52-
"name": "fields",
53-
"in": "query",
54-
"required": false,
55-
"type": "array",
56-
"items": {
57-
"type": "string"
58-
},
59-
"collectionFormat": "multi"
60-
},
61-
{
62-
"name": "values",
63-
"in": "query",
64-
"required": false,
65-
"type": "array",
66-
"items": {
67-
"type": "string"
68-
},
69-
"collectionFormat": "multi"
70-
}
71-
],
72-
"tags": [
73-
"Todos"
74-
]
75-
},
76-
"post": {
77-
"operationId": "Todos_Create",
78-
"responses": {
79-
"200": {
80-
"description": "A successful response.",
81-
"schema": {
82-
"$ref": "#/definitions/grpcsTodoResponse"
83-
}
84-
},
85-
"default": {
86-
"description": "An unexpected error response.",
87-
"schema": {
88-
"$ref": "#/definitions/rpcStatus"
89-
}
90-
}
91-
},
92-
"parameters": [
93-
{
94-
"name": "body",
95-
"in": "body",
96-
"required": true,
97-
"schema": {
98-
"$ref": "#/definitions/grpcsTodo"
99-
}
100-
}
101-
],
102-
"tags": [
103-
"Todos"
104-
]
105-
}
106-
},
107-
"/api/v1/todos/{id}": {
108-
"get": {
109-
"operationId": "Todos_Get",
110-
"responses": {
111-
"200": {
112-
"description": "A successful response.",
113-
"schema": {
114-
"$ref": "#/definitions/grpcsTodoResponse"
115-
}
116-
},
117-
"default": {
118-
"description": "An unexpected error response.",
119-
"schema": {
120-
"$ref": "#/definitions/rpcStatus"
121-
}
122-
}
123-
},
124-
"parameters": [
125-
{
126-
"name": "id",
127-
"in": "path",
128-
"required": true,
129-
"type": "string"
130-
},
131-
{
132-
"name": "name",
133-
"in": "query",
134-
"required": false,
135-
"type": "string"
136-
}
137-
],
138-
"tags": [
139-
"Todos"
140-
]
141-
},
142-
"delete": {
143-
"operationId": "Todos_Delete",
144-
"responses": {
145-
"200": {
146-
"description": "A successful response.",
147-
"schema": {
148-
"$ref": "#/definitions/grpcsTodoResponse"
149-
}
150-
},
151-
"default": {
152-
"description": "An unexpected error response.",
153-
"schema": {
154-
"$ref": "#/definitions/rpcStatus"
155-
}
156-
}
157-
},
158-
"parameters": [
159-
{
160-
"name": "id",
161-
"in": "path",
162-
"required": true,
163-
"type": "string"
164-
},
165-
{
166-
"name": "name",
167-
"in": "query",
168-
"required": false,
169-
"type": "string"
170-
}
171-
],
172-
"tags": [
173-
"Todos"
174-
]
175-
},
176-
"put": {
177-
"operationId": "Todos_Update",
178-
"responses": {
179-
"200": {
180-
"description": "A successful response.",
181-
"schema": {
182-
"$ref": "#/definitions/grpcsTodoResponse"
183-
}
184-
},
185-
"default": {
186-
"description": "An unexpected error response.",
187-
"schema": {
188-
"$ref": "#/definitions/rpcStatus"
189-
}
190-
}
191-
},
192-
"parameters": [
193-
{
194-
"name": "id",
195-
"in": "path",
196-
"required": true,
197-
"type": "string"
198-
},
199-
{
200-
"name": "body",
201-
"in": "body",
202-
"required": true,
203-
"schema": {
204-
"$ref": "#/definitions/grpcsTodo"
205-
}
206-
}
207-
],
208-
"tags": [
209-
"Todos"
210-
]
211-
},
212-
"patch": {
213-
"operationId": "Todos_Update2",
214-
"responses": {
215-
"200": {
216-
"description": "A successful response.",
217-
"schema": {
218-
"$ref": "#/definitions/grpcsTodoResponse"
219-
}
220-
},
221-
"default": {
222-
"description": "An unexpected error response.",
223-
"schema": {
224-
"$ref": "#/definitions/rpcStatus"
225-
}
226-
}
227-
},
228-
"parameters": [
229-
{
230-
"name": "id",
231-
"in": "path",
232-
"required": true,
233-
"type": "string"
234-
},
235-
{
236-
"name": "body",
237-
"in": "body",
238-
"required": true,
239-
"schema": {
240-
"$ref": "#/definitions/grpcsTodo"
241-
}
242-
}
243-
],
244-
"tags": [
245-
"Todos"
246-
]
247-
}
248-
}
249-
},
18+
"paths": {},
25019
"definitions": {
251-
"grpcsPaginationMetadata": {
252-
"type": "object",
253-
"properties": {
254-
"page": {
255-
"type": "integer",
256-
"format": "int32"
257-
},
258-
"previous": {
259-
"type": "integer",
260-
"format": "int32"
261-
},
262-
"next": {
263-
"type": "integer",
264-
"format": "int32"
265-
},
266-
"limit": {
267-
"type": "integer",
268-
"format": "int32"
269-
},
270-
"record": {
271-
"type": "integer",
272-
"format": "int32"
273-
},
274-
"total": {
275-
"type": "integer",
276-
"format": "int32"
277-
}
278-
}
279-
},
280-
"grpcsTodo": {
281-
"type": "object",
282-
"properties": {
283-
"id": {
284-
"type": "string"
285-
},
286-
"name": {
287-
"type": "string"
288-
}
289-
}
290-
},
291-
"grpcsTodoPaginatedResponse": {
292-
"type": "object",
293-
"properties": {
294-
"code": {
295-
"type": "integer",
296-
"format": "int32"
297-
},
298-
"data": {
299-
"type": "array",
300-
"items": {
301-
"$ref": "#/definitions/grpcsTodo"
302-
}
303-
},
304-
"meta": {
305-
"$ref": "#/definitions/grpcsPaginationMetadata"
306-
}
307-
}
308-
},
309-
"grpcsTodoResponse": {
310-
"type": "object",
311-
"properties": {
312-
"code": {
313-
"type": "integer",
314-
"format": "int32"
315-
},
316-
"data": {
317-
"$ref": "#/definitions/grpcsTodo"
318-
},
319-
"message": {
320-
"type": "string"
321-
}
322-
}
323-
},
32420
"protobufAny": {
32521
"type": "object",
32622
"properties": {

0 commit comments

Comments
 (0)