1 package v1alpha1
2
3
4 type AttachmentConfig struct {
5
6 CompressionLevel *int `json:"compressionLevel,omitempty" ini:"compression_level"`
7
8 Compressible []string `json:"compressibleTypes,omitempty" ini:"compressible_types"`
9 }
10
11
12 type StatisticsConfig struct {
13
14 Interval *int `json:"interval,omitempty" ini:"interval"`
15 }
16
17 type Algorithm string
18
19 const (
20 Random Algorithm = "random"
21 Sequential Algorithm = "sequential"
22 UTCRandom Algorithm = "utc_random"
23 UTCID Algorithm = "utc_id"
24 )
25
26
27 type UUIDConfig struct {
28
29 Algorithm *Algorithm `json:"algorithm,omitempty" ini:"algorithm"`
30
31 UTCIDSuffix *string `json:"utcIDSuffix,omitempty" ini:"utc_id_suffix"`
32
33 MaxCount *int `json:"maxCount,omitempty" ini:"max_count"`
34 }
35
36
37 type VendorConfig struct {
38
39 Name *string `json:"name,omitempty" ini:"name"`
40
41 Version *string `json:"version,omitempty" ini:"version"`
42 }
43
44
45 type CSPConfig struct {
46
47 UtilsEnable *bool `json:"utilsEnable,omitempty" ini:"utils_enable"`
48
49 UtilsHeaderValue *string `json:"utilsHeaderValue,omitempty" ini:"utils_header_value"`
50
51 AttachmentsEnable *bool `json:"attachmentsEnable,omitempty" ini:"attachments_enable"`
52
53 AttachmentsValue *string `json:"attachmentsHeaderValue,omitempty" ini:"attachments_header_value"`
54
55 ShowlistEnable *bool `json:"showListEnable,omitempty" ini:"showlist_enable"`
56
57 ShowlistHeaderValue *string `json:"showlistHeaderValue,omitempty" ini:"showlist_header_value"`
58
59 Enable *bool `json:"enable,omitempty" ini:"enable"`
60
61 HeaderValue *string `json:"headerValue,omitempty" ini:"header_value"`
62 }
63
64
65 type PurgeConfig struct {
66
67 MaxDocumentIDNumber *int `json:"maxDocumentIdNumber,omitempty" ini:"max_document_id_number"`
68
69 MaxRevisionsNumber *int `json:"maxRevisionsNumber,omitempty" ini:"max_revisions_number"`
70
71 IndexLagWarnSeconds *int `json:"indexLagWarnSeconds,omitempty" ini:"index_lag_warn_seconds"`
72 }
73
74
75 type BackgroundIndexConfig struct {
76
77 BatchChannels *int `json:"batch_channels,omitempty" ini:"batch_channels,omitempty"`
78
79 IncrementalChannels *int `json:"incremental_channels,omitempty" ini:"incremental_channels,omitempty"`
80
81 MaxIncrementalUpdates *int `json:"max_incremental_updates,omitempty" ini:"max_incremental_updates,omitempty"`
82
83 IgnoreShards map[string]bool `json:"ignoreShards,omitempty" ini:"ken.ignore,omitempty"`
84 }
85
86
87 type ReShardingConfig struct {
88
89 MaxJobs *int `json:"maxJobs,omitempty" ini:"max_jobs,omitempty"`
90
91 MaxHistory *int `json:"maxHistory,omitempty" ini:"max_history,omitempty"`
92
93 MaxRetries *int `json:"maxRetries,omitempty" ini:"max_retries,omitempty"`
94
95 RetryInterval *int `json:"retryInterval,omitempty" ini:"retry_interval_sec,omitempty"`
96
97 DeleteSource bool `json:"deleteSource,omitempty" ini:"delete_source,omitempty"`
98
99 UpdateTimeout *int `json:"updateTimeout,omitempty" ini:"update_shard_map_timeout_sec,omitempty"`
100
101 SourceCloseTimeout *int `json:"sourceCloseTimeout,omitempty" ini:"source_close_timeout_sec,omitempty"`
102
103 RequireNodeParam *bool `json:"requireNodeParam,omitempty" ini:"require_node_param,omitempty"`
104
105 RequireRangeParam *bool `json:"requireRangeParam,omitempty" ini:"require_range_param,omitempty"`
106 }
107
View as plain text