github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/event/query/empty.go (about)

     1  package query
     2  
     3  // Empty query matches any set of tags.
     4  type Empty struct {
     5  }
     6  
     7  var _ Query = Empty{}
     8  var _ Queryable = Empty{}
     9  
    10  // Matches always returns true.
    11  func (Empty) Matches(tags Tagged) bool {
    12  	return true
    13  }
    14  
    15  func (Empty) String() string {
    16  	return ""
    17  }
    18  
    19  func (Empty) Query() (Query, error) {
    20  	return Empty{}, nil
    21  }
    22  
    23  func (empty Empty) MatchError() error {
    24  	return nil
    25  }