forked from luraproject/lura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.go
26 lines (18 loc) · 796 Bytes
/
version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: Apache-2.0
/*
Package core contains some basic constants and variables
*/
package core
import "fmt"
// KrakendHeaderName is the name of the custom KrakenD header
const KrakendHeaderName = "X-KRAKEND"
// KrakendVersion is the version of the build
var KrakendVersion = "undefined"
// GoVersion is the version of the go compiler used at build time
var GoVersion = "undefined"
// GlibcVersion is the version of the glibc used by CGO at build time
var GlibcVersion = "undefined"
// KrakendHeaderValue is the value of the custom KrakenD header
var KrakendHeaderValue = fmt.Sprintf("Version %s", KrakendVersion)
// KrakendUserAgent is the value of the user agent header sent to the backends
var KrakendUserAgent = fmt.Sprintf("KrakenD Version %s", KrakendVersion)