github.com/number571/tendermint@v0.34.11-gost/libs/pubsub/query/empty.go (about)

     1  package query
     2  
     3  import (
     4  	"github.com/number571/tendermint/abci/types"
     5  )
     6  
     7  // Empty query matches any set of events.
     8  type Empty struct {
     9  }
    10  
    11  // Matches always returns true.
    12  func (Empty) Matches(events []types.Event) (bool, error) {
    13  	return true, nil
    14  }
    15  
    16  func (Empty) String() string {
    17  	return "empty"
    18  }