From fd019546eeb227cddb2dd0970ae9d1f1b1a60612 Mon Sep 17 00:00:00 2001 From: hq0101 <1273715732@qq.com> Date: Thu, 8 Aug 2024 21:18:57 +0800 Subject: [PATCH] swagger --- docs/docs.go | 36 +++++++++++++++--------------------- docs/swagger.json | 36 +++++++++++++++--------------------- docs/swagger.yaml | 30 +++++++++++++----------------- 3 files changed, 43 insertions(+), 59 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 447650b..32babf3 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -358,39 +358,36 @@ const docTemplate = `{ "cli.ClamdStats": { "type": "object", "properties": { - "free": { - "type": "number" - }, - "heap": { - "type": "number" - }, "idleTimeout": { "type": "integer" }, - "mmap": { + "memFree": { "type": "number" }, - "pools": { - "type": "integer" - }, - "poolsTotal": { + "memHeap": { "type": "number" }, - "poolsUsed": { + "memMmap": { "type": "number" }, - "queueItems": { - "type": "integer" + "memPoolsTotal": { + "type": "number" }, - "releasable": { + "memPoolsUsed": { "type": "number" }, - "state": { - "type": "string" + "memReleasable": { + "type": "number" }, - "stats": { + "memUsed": { "type": "number" }, + "pools": { + "type": "integer" + }, + "queueItems": { + "type": "integer" + }, "threadsIdle": { "type": "integer" }, @@ -399,9 +396,6 @@ const docTemplate = `{ }, "threadsMax": { "type": "integer" - }, - "used": { - "type": "number" } } }, diff --git a/docs/swagger.json b/docs/swagger.json index 4a39d9e..9eea2e7 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -347,39 +347,36 @@ "cli.ClamdStats": { "type": "object", "properties": { - "free": { - "type": "number" - }, - "heap": { - "type": "number" - }, "idleTimeout": { "type": "integer" }, - "mmap": { + "memFree": { "type": "number" }, - "pools": { - "type": "integer" - }, - "poolsTotal": { + "memHeap": { "type": "number" }, - "poolsUsed": { + "memMmap": { "type": "number" }, - "queueItems": { - "type": "integer" + "memPoolsTotal": { + "type": "number" }, - "releasable": { + "memPoolsUsed": { "type": "number" }, - "state": { - "type": "string" + "memReleasable": { + "type": "number" }, - "stats": { + "memUsed": { "type": "number" }, + "pools": { + "type": "integer" + }, + "queueItems": { + "type": "integer" + }, "threadsIdle": { "type": "integer" }, @@ -388,9 +385,6 @@ }, "threadsMax": { "type": "integer" - }, - "used": { - "type": "number" } } }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 79b5219..0d1e8f2 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,36 +1,32 @@ definitions: cli.ClamdStats: properties: - free: - type: number - heap: - type: number idleTimeout: type: integer - mmap: + memFree: type: number - pools: - type: integer - poolsTotal: + memHeap: type: number - poolsUsed: + memMmap: type: number - queueItems: - type: integer - releasable: + memPoolsTotal: type: number - state: - type: string - stats: + memPoolsUsed: type: number + memReleasable: + type: number + memUsed: + type: number + pools: + type: integer + queueItems: + type: integer threadsIdle: type: integer threadsLive: type: integer threadsMax: type: integer - used: - type: number type: object cli.ScanResult: properties: