github.com/lazyledger/lazyledger-core@v0.35.0-dev.0.20210613111200-4c651f053571/libs/pubsub/query/empty.go (about)

     1  package query
     2  
     3  // Empty query matches any set of events.
     4  type Empty struct {
     5  }
     6  
     7  // Matches always returns true.
     8  func (Empty) Matches(tags map[string][]string) (bool, error) {
     9  	return true, nil
    10  }
    11  
    12  func (Empty) String() string {
    13  	return "empty"
    14  }