forked from TrueCloudLab/frostfs-s3-gw
Extract the app name
This commit is contained in:
parent
d6a970af48
commit
2fee7d2577
2 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,7 @@ func newSettings() *viper.Viper {
|
||||||
peers := flags.StringArrayP("peers", "p", nil, "NeoFS nodes")
|
peers := flags.StringArrayP("peers", "p", nil, "NeoFS nodes")
|
||||||
|
|
||||||
// set prefers:
|
// set prefers:
|
||||||
v.Set("app.name", "neofs-gw")
|
v.Set("app.name", misc.ApplicationName)
|
||||||
v.Set("app.version", misc.Version)
|
v.Set("app.version", misc.Version)
|
||||||
v.Set("app.build_time", misc.Build)
|
v.Set("app.build_time", misc.Build)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package misc
|
package misc
|
||||||
|
|
||||||
|
const ApplicationName = "neofs-s3-gateway"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Build = "now"
|
Build = "now"
|
||||||
Version = "dev"
|
Version = "dev"
|
||||||
|
|
Loading…
Reference in a new issue