Skip to content

Commit

Permalink
Update indexing.go godocs (#26408)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeGaoYuan authored Jun 24, 2021
1 parent 1106449 commit 1591c15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libbeat/processors/add_kubernetes_metadata/indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ func (r *Register) AddMatcher(name string, matcher MatcherConstructor) {
r.matchers[name] = matcher
}

// AddIndexer to the register
// AddDefaultIndexerConfig to the register
func (r *Register) AddDefaultIndexerConfig(name string, config common.Config) {
r.Lock()
defer r.Unlock()
r.defaultIndexerConfigs[name] = config
}

// AddMatcher to the register
// AddDefaultMatcherConfig to the register
func (r *Register) AddDefaultMatcherConfig(name string, config common.Config) {
r.Lock()
defer r.Unlock()
r.defaultMatcherConfigs[name] = config
}

// AddIndexer to the register
// GetIndexer from the register
func (r *Register) GetIndexer(name string) IndexerConstructor {
r.RLock()
defer r.RUnlock()
Expand All @@ -88,7 +88,7 @@ func (r *Register) GetIndexer(name string) IndexerConstructor {
}
}

// AddMatcher to the register
// GetMatcher from the register
func (r *Register) GetMatcher(name string) MatcherConstructor {
r.RLock()
defer r.RUnlock()
Expand Down

0 comments on commit 1591c15

Please sign in to comment.