Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Commit f9c6367

Browse files
authored
1.3.0
nodes health check
2 parents 9e5f954 + dcb5071 commit f9c6367

27 files changed

+1118
-33
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.3.0 (2021/12/16)
2+
> 1. Support service nodes health check, but http server type is unsupported currently.
3+
14
### 1.2.0 (2021/12/07)
25
> 1. Update login page, using new logo and icon.
36
> 2. Using delon auth config.

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ Go micro dashboard is designed to make it as easy as possible for users to work
77
- [x] Logo
88
- [x] Web UI
99
- [x] Service discovery
10-
- [ ] Health check
10+
- [ ] Register service
11+
- [ ] Deregister service
12+
- [x] Health check
1113
- [ ] Configure service
12-
- [x] Endpoint request
13-
- [x] Broker messages
14+
- [x] Synchronous communication
15+
- [x] RPC
16+
- [ ] Stream
17+
- [x] Asynchronous communication
18+
- [x] Publish
19+
- [ ] Subscribe
1420

1521
## Installation
1622

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "time"
44

55
const (
66
Name = "go.micro.dashboard"
7-
Version = "1.2.0"
7+
Version = "1.3.0"
88
)
99

1010
const (

docs/docs.go

Lines changed: 165 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,56 @@ var doc = `{
158158
}
159159
}
160160
},
161+
"/api/client/healthcheck": {
162+
"post": {
163+
"security": [
164+
{
165+
"ApiKeyAuth": []
166+
}
167+
],
168+
"tags": [
169+
"Client"
170+
],
171+
"operationId": "client_healthCheck",
172+
"parameters": [
173+
{
174+
"description": "request",
175+
"name": "input",
176+
"in": "body",
177+
"required": true,
178+
"schema": {
179+
"$ref": "#/definitions/client.healthCheckRequest"
180+
}
181+
}
182+
],
183+
"responses": {
184+
"200": {
185+
"description": "success",
186+
"schema": {
187+
"type": "object"
188+
}
189+
},
190+
"400": {
191+
"description": "Bad Request",
192+
"schema": {
193+
"type": "string"
194+
}
195+
},
196+
"401": {
197+
"description": "Unauthorized",
198+
"schema": {
199+
"type": "string"
200+
}
201+
},
202+
"500": {
203+
"description": "Internal Server Error",
204+
"schema": {
205+
"type": "string"
206+
}
207+
}
208+
}
209+
}
210+
},
161211
"/api/client/publish": {
162212
"post": {
163213
"security": [
@@ -316,6 +366,45 @@ var doc = `{
316366
}
317367
}
318368
},
369+
"/api/registry/service/nodes": {
370+
"get": {
371+
"security": [
372+
{
373+
"ApiKeyAuth": []
374+
}
375+
],
376+
"tags": [
377+
"Registry"
378+
],
379+
"operationId": "registry_getNodes",
380+
"responses": {
381+
"200": {
382+
"description": "OK",
383+
"schema": {
384+
"$ref": "#/definitions/registry.getNodeListResponse"
385+
}
386+
},
387+
"400": {
388+
"description": "Bad Request",
389+
"schema": {
390+
"type": "string"
391+
}
392+
},
393+
"401": {
394+
"description": "Unauthorized",
395+
"schema": {
396+
"type": "string"
397+
}
398+
},
399+
"500": {
400+
"description": "Internal Server Error",
401+
"schema": {
402+
"type": "string"
403+
}
404+
}
405+
}
406+
}
407+
},
319408
"/api/registry/service/subscribers": {
320409
"get": {
321410
"security": [
@@ -521,6 +610,28 @@ var doc = `{
521610
}
522611
}
523612
},
613+
"client.healthCheckRequest": {
614+
"type": "object",
615+
"required": [
616+
"address",
617+
"service",
618+
"version"
619+
],
620+
"properties": {
621+
"address": {
622+
"type": "string"
623+
},
624+
"service": {
625+
"type": "string"
626+
},
627+
"timeout": {
628+
"type": "integer"
629+
},
630+
"version": {
631+
"type": "string"
632+
}
633+
}
634+
},
524635
"client.publishRequest": {
525636
"type": "object",
526637
"required": [
@@ -536,6 +647,17 @@ var doc = `{
536647
}
537648
}
538649
},
650+
"registry.getNodeListResponse": {
651+
"type": "object",
652+
"properties": {
653+
"services": {
654+
"type": "array",
655+
"items": {
656+
"$ref": "#/definitions/registry.registryServiceNodes"
657+
}
658+
}
659+
}
660+
},
539661
"registry.getServiceDetailResponse": {
540662
"type": "object",
541663
"properties": {
@@ -604,6 +726,9 @@ var doc = `{
604726
},
605727
"response": {
606728
"$ref": "#/definitions/registry.registryValue"
729+
},
730+
"stream": {
731+
"type": "boolean"
607732
}
608733
}
609734
},
@@ -628,6 +753,31 @@ var doc = `{
628753
}
629754
}
630755
},
756+
"registry.registryNodeDetail": {
757+
"type": "object",
758+
"required": [
759+
"address",
760+
"id",
761+
"version"
762+
],
763+
"properties": {
764+
"address": {
765+
"type": "string"
766+
},
767+
"id": {
768+
"type": "string"
769+
},
770+
"metadata": {
771+
"type": "object",
772+
"additionalProperties": {
773+
"type": "string"
774+
}
775+
},
776+
"version": {
777+
"type": "string"
778+
}
779+
}
780+
},
631781
"registry.registryService": {
632782
"type": "object",
633783
"required": [
@@ -667,6 +817,20 @@ var doc = `{
667817
}
668818
}
669819
},
820+
"registry.registryServiceNodes": {
821+
"type": "object",
822+
"properties": {
823+
"name": {
824+
"type": "string"
825+
},
826+
"nodes": {
827+
"type": "array",
828+
"items": {
829+
"$ref": "#/definitions/registry.registryNodeDetail"
830+
}
831+
}
832+
}
833+
},
670834
"registry.registryServiceSummary": {
671835
"type": "object",
672836
"required": [
@@ -762,7 +926,7 @@ type swaggerInfo struct {
762926

763927
// SwaggerInfo holds exported Swagger Info so clients can modify it
764928
var SwaggerInfo = swaggerInfo{
765-
Version: "1.2.0",
929+
Version: "1.3.0",
766930
Host: "",
767931
BasePath: "/",
768932
Schemes: []string{},

0 commit comments

Comments
 (0)