MSP-1388 [v] after review
This commit is contained in:
1 parent
44766fff0d
commit
92a1c0b770
3 files changed
+4
-5
No files matched your search
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"logLevel": "debug",
|
||||
"defaultTimeOutInSec": 10,
|
||||
"redis": {
|
||||
"address": "localhost:6379",
|
||||
"password": "",
|
||||
|
||||
+2
-4
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user