github.com/eris-ltd/erisdb@v0.25.0/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 "empty" 17 } 18 19 func (Empty) Query() (Query, error) { 20 return Empty{}, nil 21 }