From 643032ac245a6336a579dfa8f4e23d6d66214c67 Mon Sep 17 00:00:00 2001 From: miiu Date: Mon, 8 Jul 2024 12:11:28 +0300 Subject: [PATCH] comments --- client/elasticClient.go | 1 + process/elasticproc/templatesAndPolicies/withKibana.go | 1 + 2 files changed, 2 insertions(+) diff --git a/client/elasticClient.go b/client/elasticClient.go index 5ae130a4..f388c049 100644 --- a/client/elasticClient.go +++ b/client/elasticClient.go @@ -85,6 +85,7 @@ func (ec *elasticClient) CheckAndCreateIndex(indexName string) error { return ec.createIndex(indexName) } +// PutMappings will put the provided mappings to a given index func (ec *elasticClient) PutMappings(indexName string, mappings *bytes.Buffer) error { res, err := ec.client.Indices.PutMapping( mappings, diff --git a/process/elasticproc/templatesAndPolicies/withKibana.go b/process/elasticproc/templatesAndPolicies/withKibana.go index 33ddaa23..7ffe6b2f 100644 --- a/process/elasticproc/templatesAndPolicies/withKibana.go +++ b/process/elasticproc/templatesAndPolicies/withKibana.go @@ -23,6 +23,7 @@ func (tr *templatesAndPolicyReaderWithKibana) GetElasticTemplatesAndPolicies() ( return indexTemplates, indexPolicies, nil } +// GetExtraMappings will return an array of indices extra mappings func (tr *templatesAndPolicyReaderWithKibana) GetExtraMappings() ([]templates.ExtraMapping, error) { return []templates.ExtraMapping{}, nil }