summaryrefslogtreecommitdiff
path: root/src/index.py
blob: 3541ec79453444a097c5ff449d19016cfd50c933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"
    }