From 5e72ec386437c66661a2a98b1a232a3ad49af893 Mon Sep 17 00:00:00 2001 From: d1slike Date: Wed, 24 Apr 2024 17:56:48 +0300 Subject: [PATCH] Fix build --- docs/docs.go | 1678 -------------------------------------------------- main.go | 1 - 2 files changed, 1679 deletions(-) delete mode 100644 docs/docs.go diff --git a/docs/docs.go b/docs/docs.go deleted file mode 100644 index 64ce339..0000000 --- a/docs/docs.go +++ /dev/null @@ -1,1678 +0,0 @@ -// Package docs Code generated by swaggo/swag. DO NOT EDIT -package docs - -import "github.com/integration-system/swag" - -const docTemplate = `{ - "schemes": {{ marshal .Schemes }}, - "swagger": "2.0", - "info": { - "description": "{{escape .Description}}", - "title": "{{.Title}}", - "contact": {}, - "license": { - "name": "GNU GPL v3.0" - }, - "version": "{{.Version}}" - }, - "host": "{{.Host}}", - "basePath": "{{.BasePath}}", - "paths": { - "/common_config/compile": { - "post": { - "description": "Возвращает скомпилированный объект конфигурации", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод компиляции итоговой конфигурации для модулей", - "parameters": [ - { - "description": "перечисление идентификаторов общей конфигурации и исхдных конфиг", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.CompileConfigsRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.CompiledConfigResponse" - } - } - } - } - }, - "/common_config/create_update_config": { - "post": { - "description": "Если конфиг с таким id существует, то обновляет данные, если нет, то добавляет данные в базу\nВ случае обновления рассылает всем подключенным модулям актуальную конфигурацию", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод обновления общей конфигурации", - "parameters": [ - { - "description": "объект для сохранения", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/entity.CommonConfig" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.CommonConfig" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/common_config/delete_config": { - "post": { - "description": "Возвращает флаг удаления и набор связей с модулями и конфигурациями, в случае наличия связей deleted всегда false", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод удаления объектов общей конфигурации по идентификаторам", - "parameters": [ - { - "description": "id общей конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteCommonConfigResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/common_config/get_configs": { - "post": { - "description": "Возвращает массив конфигураций по запрошенным идентификаторам (все, если массив пустой)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод получения объектов конфигурации по идентификаторам", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/entity.CommonConfig" - } - } - } - } - } - }, - "/common_config/get_links": { - "post": { - "description": "Возвращает ассоциативный массив, ключами которого являются название модулей, а значения - название конфигурации модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод получения связей общей конфигурациями с конфигурацией модулей", - "parameters": [ - { - "description": "id общей конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.CommonConfigLinks" - } - } - } - } - }, - "/config/create_update_config": { - "post": { - "description": "Если конфиг с таким id существует, то обновляет данные, если нет, то добавляет данные в базу\nВ случае обновления рассылает всем подключенным модулям актуальную конфигурацию", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод обновления конфигурации", - "parameters": [ - { - "description": "объект для сохранения", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.CreateUpdateConfigRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.ConfigModuleInfo" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/delete_config": { - "post": { - "description": "Возвращает количество удаленных модулей", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод удаления объектов конфигурации по идентификаторам", - "parameters": [ - { - "description": "массив идентификаторов конфигураций", - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteResponse" - } - }, - "400": { - "description": "если не указан массив идентификаторов", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/delete_version": { - "post": { - "description": "Возвращает количество удаленных версий", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод удаления версии конфигурации", - "parameters": [ - { - "description": "id версии конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteResponse" - } - }, - "400": { - "description": "если не указан массив идентификаторов", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_active_config_by_module_name": { - "post": { - "description": "Возвращает активную конфиграцию по названию модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получения объекта конфигурации по названию модуля", - "parameters": [ - { - "description": "название модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleNameRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.Config" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_all_version": { - "post": { - "description": "Возвращает предыдущие версии конфигураций", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получение старых версий конфигурации", - "parameters": [ - { - "description": "id конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/entity.VersionConfig" - } - } - }, - "400": { - "description": "если не указан массив идентификаторов", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_config_by_id": { - "post": { - "description": "Возвращает актуальную версию конфигурации без дополнительного содержимого (ConfigData)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получение актуальной конфигурации конфигурации", - "parameters": [ - { - "description": "id конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.Config" - } - }, - "400": { - "description": "если не указан идентификатор конфигурации", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_configs_by_module_id": { - "post": { - "description": "Возвращает список конфиграции по ID модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получения списка конфигураций по ID модуля", - "parameters": [ - { - "description": "ID модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ConfigModuleInfo" - } - } - }, - "400": { - "description": "если идентификатор не указан", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/mark_config_as_active": { - "post": { - "description": "Активирует указанную конфигурацию и деактивирует остальные, возвращает активированную конфигурацию", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод активации конфигурации для модуля", - "parameters": [ - { - "description": "id конфигурации для изменения", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "активированная конфигурация", - "schema": { - "$ref": "#/definitions/entity.Config" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/broadcast_event": { - "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод отправки события всем подключенным модулям", - "parameters": [ - { - "description": "событие", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.BroadcastEventRequest" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/delete_module": { - "post": { - "description": "Возвращает количество удаленных модулей", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод удаления объектов модулей по идентификаторам", - "parameters": [ - { - "description": "массив идентификаторов модулей", - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/get_by_name": { - "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод получения модуля по имени", - "parameters": [ - { - "description": "название модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleNameRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.Module" - } - }, - "404": { - "description": "модуль с указанным названием не найден", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/get_modules_info": { - "post": { - "description": "Возвращает полное состояние всех модулей в кластере (конфигурация, схема конфигурации, подключенные экземпляры)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод получения полной информации о состоянии модуля", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ModuleInfo" - } - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/routing/get_routes": { - "post": { - "description": "Возвращает все доступные модули", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Роуты" - ], - "summary": "Метод получения маршрутов", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.BackendDeclaration" - } - } - } - } - } - }, - "/schema/get_by_module_id": { - "post": { - "description": "Возвращает текущую json схему конфигурации модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Схема" - ], - "summary": "Метод получения схемы конфигурации модуля", - "parameters": [ - { - "description": "идентификатор модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.ConfigSchema" - } - }, - "404": { - "description": "если схема для модуля не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - } - }, - "definitions": { - "domain.BroadcastEventRequest": { - "type": "object", - "properties": { - "event": { - "type": "string" - }, - "moduleNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "payload": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "domain.CommonConfigLinks": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "domain.CompileConfigsRequest": { - "type": "object", - "properties": { - "commonConfigsIdList": { - "type": "array", - "items": { - "type": "string" - } - }, - "data": { - "type": "object", - "additionalProperties": true - } - } - }, - "domain.CompiledConfigResponse": { - "type": "object", - "additionalProperties": true - }, - "domain.ConfigIdRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "domain.ConfigModuleInfo": { - "type": "object", - "properties": { - "active": { - "type": "boolean" - }, - "commonConfigs": { - "type": "array", - "items": { - "type": "string" - } - }, - "createdAt": { - "type": "string" - }, - "data": { - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "valid": { - "type": "boolean" - }, - "version": { - "type": "integer" - } - } - }, - "domain.Connection": { - "type": "object", - "properties": { - "address": { - "$ref": "#/definitions/structure.AddressConfiguration" - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.EndpointDescriptor" - } - }, - "establishedAt": { - "type": "string" - }, - "libVersion": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "domain.CreateUpdateConfigRequest": { - "type": "object", - "properties": { - "active": { - "type": "boolean" - }, - "commonConfigs": { - "type": "array", - "items": { - "type": "string" - } - }, - "createdAt": { - "type": "string" - }, - "data": { - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "unsafe": { - "type": "boolean" - }, - "updatedAt": { - "type": "string" - }, - "version": { - "type": "integer" - } - } - }, - "domain.DeleteCommonConfigResponse": { - "type": "object", - "properties": { - "deleted": { - "type": "boolean" - }, - "links": { - "$ref": "#/definitions/domain.CommonConfigLinks" - } - } - }, - "domain.DeleteResponse": { - "type": "object", - "properties": { - "deleted": { - "type": "integer" - } - } - }, - "domain.GetByModuleIdRequest": { - "type": "object", - "properties": { - "moduleId": { - "type": "string" - } - } - }, - "domain.GetByModuleNameRequest": { - "type": "object", - "properties": { - "moduleName": { - "type": "string" - } - } - }, - "domain.ModuleDependency": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "required": { - "type": "boolean" - } - } - }, - "domain.ModuleInfo": { - "type": "object", - "properties": { - "active": { - "type": "boolean" - }, - "configSchema": { - "$ref": "#/definitions/schema.Schema" - }, - "configs": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ConfigModuleInfo" - } - }, - "createdAt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "lastConnectedAt": { - "type": "string" - }, - "lastDisconnectedAt": { - "type": "string" - }, - "name": { - "type": "string" - }, - "requiredModules": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ModuleDependency" - } - }, - "status": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.Connection" - } - } - } - }, - "entity.CommonConfig": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "data": { - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "updatedAt": { - "type": "string" - } - } - }, - "entity.Config": { - "type": "object", - "properties": { - "active": { - "type": "boolean" - }, - "commonConfigs": { - "type": "array", - "items": { - "type": "string" - } - }, - "createdAt": { - "type": "string" - }, - "data": { - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "version": { - "type": "integer" - } - } - }, - "entity.ConfigData": { - "type": "object", - "additionalProperties": true - }, - "entity.ConfigSchema": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "schema": { - "$ref": "#/definitions/schema.Schema" - }, - "updatedAt": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "entity.Module": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "lastConnectedAt": { - "type": "string" - }, - "lastDisconnectedAt": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "entity.VersionConfig": { - "type": "object", - "properties": { - "configId": { - "type": "string" - }, - "configVersion": { - "type": "integer" - }, - "createdAt": { - "type": "string" - }, - "data": { - "$ref": "#/definitions/entity.ConfigData" - }, - "id": { - "type": "string" - } - } - }, - "jsonschema.Definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "jsonschema.Type": { - "type": "object", - "properties": { - "$ref": { - "description": "section 7", - "type": "string" - }, - "$schema": { - "description": "RFC draft-wright-json-schema-00", - "type": "string" - }, - "additionalItems": { - "description": "section 5.9", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "additionalProperties": { - "description": "section 5.18", - "type": "array", - "items": { - "type": "integer" - } - }, - "allOf": { - "description": "section 5.22", - "type": "array", - "items": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "anyOf": { - "description": "section 5.23", - "type": "array", - "items": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "binaryEncoding": { - "description": "section 4.3", - "type": "string" - }, - "default": { - "description": "section 6.2" - }, - "definitions": { - "description": "section 5.26", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Definitions" - } - ] - }, - "dependencies": { - "description": "section 5.19", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "description": { - "description": "section 6.1", - "type": "string" - }, - "enum": { - "description": "section 5.20", - "type": "array", - "items": {} - }, - "exclusiveMaximum": { - "description": "section 5.3", - "type": "boolean" - }, - "exclusiveMinimum": { - "description": "section 5.5", - "type": "boolean" - }, - "format": { - "description": "section 7", - "type": "string" - }, - "items": { - "description": "section 5.9", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "maxItems": { - "description": "section 5.10", - "type": "integer" - }, - "maxLength": { - "description": "section 5.6", - "type": "integer" - }, - "maxProperties": { - "description": "section 5.13", - "type": "integer" - }, - "maximum": { - "description": "section 5.2", - "type": "integer" - }, - "media": { - "description": "RFC draft-wright-json-schema-hyperschema-00, section 4", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "minItems": { - "description": "section 5.11", - "type": "integer" - }, - "minLength": { - "description": "section 5.7", - "type": "integer" - }, - "minProperties": { - "description": "section 5.14", - "type": "integer" - }, - "minimum": { - "description": "section 5.4", - "type": "integer" - }, - "multipleOf": { - "description": "RFC draft-wright-json-schema-validation-00, section 5", - "type": "integer" - }, - "not": { - "description": "section 5.25", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "oneOf": { - "description": "section 5.24", - "type": "array", - "items": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "pattern": { - "description": "section 5.8", - "type": "string" - }, - "patternProperties": { - "description": "section 5.17", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "properties": { - "description": "section 5.16", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "required": { - "description": "section 5.15", - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "description": "RFC draft-wright-json-schema-validation-00, section 6, 7", - "type": "string" - }, - "type": { - "description": "section 5.21", - "type": "string" - }, - "uniqueItems": { - "description": "section 5.12", - "type": "boolean" - } - } - }, - "schema.Schema": { - "type": "object", - "properties": { - "$ref": { - "description": "section 7", - "type": "string" - }, - "$schema": { - "description": "RFC draft-wright-json-schema-00", - "type": "string" - }, - "additionalItems": { - "description": "section 5.9", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "additionalProperties": { - "description": "section 5.18", - "type": "array", - "items": { - "type": "integer" - } - }, - "allOf": { - "description": "section 5.22", - "type": "array", - "items": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "anyOf": { - "description": "section 5.23", - "type": "array", - "items": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "binaryEncoding": { - "description": "section 4.3", - "type": "string" - }, - "default": { - "description": "section 6.2" - }, - "definitions": { - "$ref": "#/definitions/jsonschema.Definitions" - }, - "dependencies": { - "description": "section 5.19", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "description": { - "description": "section 6.1", - "type": "string" - }, - "enum": { - "description": "section 5.20", - "type": "array", - "items": {} - }, - "exclusiveMaximum": { - "description": "section 5.3", - "type": "boolean" - }, - "exclusiveMinimum": { - "description": "section 5.5", - "type": "boolean" - }, - "format": { - "description": "section 7", - "type": "string" - }, - "items": { - "description": "section 5.9", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "maxItems": { - "description": "section 5.10", - "type": "integer" - }, - "maxLength": { - "description": "section 5.6", - "type": "integer" - }, - "maxProperties": { - "description": "section 5.13", - "type": "integer" - }, - "maximum": { - "description": "section 5.2", - "type": "integer" - }, - "media": { - "description": "RFC draft-wright-json-schema-hyperschema-00, section 4", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "minItems": { - "description": "section 5.11", - "type": "integer" - }, - "minLength": { - "description": "section 5.7", - "type": "integer" - }, - "minProperties": { - "description": "section 5.14", - "type": "integer" - }, - "minimum": { - "description": "section 5.4", - "type": "integer" - }, - "multipleOf": { - "description": "RFC draft-wright-json-schema-validation-00, section 5", - "type": "integer" - }, - "not": { - "description": "section 5.25", - "allOf": [ - { - "$ref": "#/definitions/jsonschema.Type" - } - ] - }, - "oneOf": { - "description": "section 5.24", - "type": "array", - "items": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "pattern": { - "description": "section 5.8", - "type": "string" - }, - "patternProperties": { - "description": "section 5.17", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "properties": { - "description": "section 5.16", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "required": { - "description": "section 5.15", - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "description": "RFC draft-wright-json-schema-validation-00, section 6, 7", - "type": "string" - }, - "type": { - "description": "section 5.21", - "type": "string" - }, - "uniqueItems": { - "description": "section 5.12", - "type": "boolean" - } - } - }, - "structure.AddressConfiguration": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "port": { - "type": "string" - } - } - }, - "structure.BackendDeclaration": { - "type": "object", - "properties": { - "address": { - "$ref": "#/definitions/structure.AddressConfiguration" - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.EndpointDescriptor" - } - }, - "libVersion": { - "type": "string" - }, - "moduleName": { - "type": "string" - }, - "requiredModules": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.ModuleDependency" - } - }, - "version": { - "type": "string" - } - } - }, - "structure.EndpointDescriptor": { - "type": "object", - "properties": { - "extra": { - "type": "object", - "additionalProperties": true - }, - "inner": { - "type": "boolean" - }, - "path": { - "type": "string" - }, - "userAuthRequired": { - "type": "boolean" - } - } - }, - "structure.GrpcError": { - "type": "object", - "properties": { - "details": { - "type": "array", - "items": {} - }, - "errorCode": { - "type": "string" - }, - "errorMessage": { - "type": "string" - } - } - }, - "structure.ModuleDependency": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "required": { - "type": "boolean" - } - } - } - } -}` - -// SwaggerInfo holds exported Swagger Info so clients can modify it -var SwaggerInfo = &swag.Spec{ - Version: "2.4.1", - Host: "localhost:9003", - BasePath: "/api/config", - Schemes: []string{}, - Title: "ISP configuration service", - Description: "Сервис управления конфигурацией модулей ISP кластера", - InfoInstanceName: "swagger", - SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", -} - -func init() { - swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) -} diff --git a/main.go b/main.go index ffa40c5..e335b8a 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,6 @@ import ( "isp-config-service/codes" "isp-config-service/conf" "isp-config-service/controller" - _ "isp-config-service/docs" "isp-config-service/helper" "isp-config-service/holder" "isp-config-service/model"