MCPcopy
hub / github.com/prometheus/prometheus / equalStringMatcher

Struct equalStringMatcher

model/labels/regexp.go:815–818  ·  view source on GitHub ↗

equalStringMatcher matches a string exactly and support case insensitive.

Source from the content-addressed store, hash-verified

813
814// equalStringMatcher matches a string exactly and support case insensitive.
815type equalStringMatcher struct {
816 s string
817 caseSensitive bool
818}
819
820func (m *equalStringMatcher) Matches(s string) bool {
821 if m.caseSensitive {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected