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",
|
"logLevel": "debug",
|
||||||
"defaultTimeOutInSec": 10,
|
|
||||||
"redis": {
|
"redis": {
|
||||||
"address": "localhost:6379",
|
"address": "localhost:6379",
|
||||||
"password": "",
|
"password": "",
|
||||||
|
|||||||
+2
-4
@@ -2,7 +2,6 @@ package conf
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/integration-system/isp-kit/log"
|
"github.com/integration-system/isp-kit/log"
|
||||||
"github.com/integration-system/isp-kit/rc/schema"
|
"github.com/integration-system/isp-kit/rc/schema"
|
||||||
@@ -18,9 +17,8 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Remote struct {
|
type Remote struct {
|
||||||
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
|
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
|
||||||
Redis Redis `schema:"Настройки redis"`
|
Redis Redis `schema:"Настройки redis"`
|
||||||
DefaultTimeOutInSec time.Duration `schema:"TTLInSec по умолчанию, в секундах"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Redis struct {
|
type Redis struct {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
POST http://{{address}}/api/isp-lock-service/lock
|
POST http://{{address}}/api/isp-lock-service/lock
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
X-Application-Token: {{token}}
|
X-Application-Token: {{token}}
|
||||||
|
x-auth-admin: {{admin-token}}
|
||||||
|
|
||||||
{
|
{
|
||||||
"key": "abc",
|
"key": "abc",
|
||||||
@@ -15,6 +16,7 @@ X-Application-Token: {{token}}
|
|||||||
POST http://{{address}}/api/isp-lock-service/unlock
|
POST http://{{address}}/api/isp-lock-service/unlock
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
X-Application-Token: {{token}}
|
X-Application-Token: {{token}}
|
||||||
|
x-auth-admin: {{admin-token}}
|
||||||
|
|
||||||
{
|
{
|
||||||
"key": "abc",
|
"key": "abc",
|
||||||
|
|||||||
Reference in new issue
Block a user