embed version in binary

This commit is contained in:
Hayden 2022-09-13 20:06:07 -08:00
parent ca36e3b080
commit 0b92d57b85
10 changed files with 87 additions and 9 deletions

View file

@ -821,6 +821,9 @@ const docTemplate = `{
"types.ApiSummary": {
"type": "object",
"properties": {
"build": {
"$ref": "#/definitions/types.Build"
},
"health": {
"type": "boolean"
},
@ -838,6 +841,20 @@ const docTemplate = `{
}
}
},
"types.Build": {
"type": "object",
"properties": {
"build_time": {
"type": "string"
},
"commit": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"types.DocumentOut": {
"type": "object",
"properties": {

View file

@ -813,6 +813,9 @@
"types.ApiSummary": {
"type": "object",
"properties": {
"build": {
"$ref": "#/definitions/types.Build"
},
"health": {
"type": "boolean"
},
@ -830,6 +833,20 @@
}
}
},
"types.Build": {
"type": "object",
"properties": {
"build_time": {
"type": "string"
},
"commit": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"types.DocumentOut": {
"type": "object",
"properties": {

View file

@ -16,6 +16,8 @@ definitions:
type: object
types.ApiSummary:
properties:
build:
$ref: '#/definitions/types.Build'
health:
type: boolean
message:
@ -27,6 +29,15 @@ definitions:
type: string
type: array
type: object
types.Build:
properties:
build_time:
type: string
commit:
type: string
version:
type: string
type: object
types.DocumentOut:
properties:
id: