diff --git a/conf/default_remote_config.json b/conf/default_remote_config.json index cfbbc85..73a3d91 100644 --- a/conf/default_remote_config.json +++ b/conf/default_remote_config.json @@ -1,6 +1,5 @@ { "logLevel": "debug", - "defaultTimeOutInSec": 10, "redis": { "address": "localhost:6379", "password": "", diff --git a/conf/remote.go b/conf/remote.go index 6f15031..d1ff132 100644 --- a/conf/remote.go +++ b/conf/remote.go @@ -2,7 +2,6 @@ package conf import ( "reflect" - "time" "github.com/integration-system/isp-kit/log" "github.com/integration-system/isp-kit/rc/schema" @@ -18,9 +17,8 @@ func init() { } type Remote struct { - LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"` - Redis Redis `schema:"Настройки redis"` - DefaultTimeOutInSec time.Duration `schema:"TTLInSec по умолчанию, в секундах"` + LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"` + Redis Redis `schema:"Настройки redis"` } type Redis struct { diff --git a/rest_test.http b/rest_test.http index 0f4bb72..71dc1ac 100644 --- a/rest_test.http +++ b/rest_test.http @@ -2,6 +2,7 @@ POST http://{{address}}/api/isp-lock-service/lock Content-Type: application/json X-Application-Token: {{token}} +x-auth-admin: {{admin-token}} { "key": "abc", @@ -15,6 +16,7 @@ X-Application-Token: {{token}} POST http://{{address}}/api/isp-lock-service/unlock Content-Type: application/json X-Application-Token: {{token}} +x-auth-admin: {{admin-token}} { "key": "abc",