"Fossies" - the Fresh Open Source Software Archive

Member "mattermost-server-6.0.1/vendor/github.com/splitio/go-client/v6/splitio/engine/grammar/matchers/allkeys.go" (18 Oct 2021, 475 Bytes) of package /linux/www/mattermost-server-6.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Go source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 package matchers
    2 
    3 // AllKeysMatcher matches any given key and set of attributes
    4 type AllKeysMatcher struct {
    5     Matcher
    6 }
    7 
    8 // Match implementation for AllKeysMatcher
    9 func (m AllKeysMatcher) Match(key string, attributes map[string]interface{}, bucketingKey *string) bool {
   10     return true
   11 }
   12 
   13 // NewAllKeysMatcher returns a pointer to a new instance of AllKeysMatcher
   14 func NewAllKeysMatcher(negate bool) *AllKeysMatcher {
   15     return &AllKeysMatcher{Matcher: Matcher{negate: negate}}
   16 }