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/go.mod b/go.mod index b929085..a9f861a 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,6 @@ require ( github.com/integration-system/isp-lib/v2 v2.11.0 github.com/integration-system/isp-log v1.2.0 github.com/integration-system/net-mux v1.0.1 - github.com/integration-system/swag v1.7.115 github.com/json-iterator/go v1.1.12 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index cb655dd..1a6e489 100644 --- a/go.sum +++ b/go.sum @@ -46,8 +46,6 @@ github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3 github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc= github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -58,7 +56,6 @@ github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5 github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go v1.29.9/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg= @@ -90,7 +87,6 @@ github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -112,11 +108,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= @@ -129,14 +122,11 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= -github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI= github.com/go-openapi/spec v0.20.7/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= @@ -274,8 +264,6 @@ github.com/integration-system/jsonschema v1.0.1 h1:nR78BEDG9djX2uXQ1YP66a/9yQOMm github.com/integration-system/jsonschema v1.0.1/go.mod h1:EoqDH7RmC8Epg5EgjboIxDo7Udv3WX2exGqtIVB4hI0= github.com/integration-system/net-mux v1.0.1 h1:UKHdt1UxNJXwroeLdhYQeUah/aizcqx6hS1SOdfx7pg= github.com/integration-system/net-mux v1.0.1/go.mod h1:0iEskyZB58/VwtFu8BATYMmPse2ZU9WWv6agidMEAs0= -github.com/integration-system/swag v1.7.115 h1:MnKJO3vifqJuc2SL8BEagJzzTOKoFZOVdrLL4JXdnb8= -github.com/integration-system/swag v1.7.115/go.mod h1:ELPtyiM3C6kzIFEmhEkls73vQ7ZKyH4fbQEkrOuBYcc= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= @@ -322,8 +310,6 @@ github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= @@ -402,7 +388,6 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rs/xid v1.2.2-0.20200205151950-d13a6085d55c/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg= @@ -411,8 +396,6 @@ github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr github.com/segmentio/encoding v0.1.15/go.mod h1:RWhr02uzMB9gQC1x+MfYxedtmBibb9cZ6Vv9VxRSSbw= github.com/segmentio/encoding v0.3.6 h1:E6lVLyDPseWEulBmCmAKPanDd3jiyGDo5gMcugCRwZQ= github.com/segmentio/encoding v0.3.6/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= -github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= @@ -457,15 +440,11 @@ github.com/swaggo/http-swagger v1.3.3/go.mod h1:sE+4PjD89IxMPm77FnkDz0sdO+p5lbXz github.com/swaggo/swag v1.8.8 h1:/GgJmrJ8/c0z4R4hoEPZ5UeEhVGdvsII4JbVDLbR7Xc= github.com/swaggo/swag v1.8.8/go.mod h1:ezQVUUhly8dludpVk+/PuwJWvLLanB13ygV5Pr9enSk= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= -github.com/ugorji/go v1.1.5-pre/go.mod h1:FwP/aQVg39TXzItUBMwnWp9T9gPQnXw4Poh4/oBQZ/0= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.1.5-pre/go.mod h1:tULtS6Gy1AE1yCENaw4Vb//HLH5njI2tfCQDUqRd8fI= github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.43.0 h1:Gy4sb32C98fbzVWZlTM1oTMdLWGyvxR03VhM6cBIU4g= @@ -571,7 +550,6 @@ golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -593,7 +571,6 @@ golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -625,7 +602,6 @@ golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -688,7 +664,6 @@ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= @@ -706,7 +681,6 @@ golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -868,15 +842,12 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 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"