summaryrefslogtreecommitdiff
path: root/src/db/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/index.py')
-rw-r--r--src/db/index.py61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/db/index.py b/src/db/index.py
deleted file mode 100644
index 688ceeb..0000000
--- a/src/db/index.py
+++ /dev/null
@@ -1,61 +0,0 @@
-from pydantic import BaseSettings
-
-
-class CouchIindex(BaseSettings):
- domain: dict = {
- "index": {
- "fields": [
- "domain",
- ]
- },
- "name": "domain-json-index",
- "type": "json"
- }
- ip: dict = {
- "index": {
- "fields": [
- "domain",
- "ip"
- ]
- },
- "name": "ip-json-index",
- "type": "json"
- }
- port: dict = {
- "index": {
- "fields": [
- "domain",
- "port"
- ]
- },
- "name": "port-json-index",
- "type": "json"
- }
- asn: dict = {
- "index": {
- "fields": [
- "domain",
- "asn"
- ]
- },
- "name": "asn-json-index",
- "type": "json"
- }
- asn_country_code: dict = {
- "index": {
- "fields": [
- "domain",
- "asn_country_code"
- ]
- },
- "name": "asn-country-code-json-index",
- "type": "json"
- }
-
-
-def as_list():
- index_list = list()
- for item in CouchIindex().dict():
- index_list.append(CouchIindex().dict()[item])
-
- return index_list