2023-10-19 10:19:10 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
var _ Projection = (*projection)(nil)
|
|
|
|
|
|
|
|
type projection struct {
|
|
|
|
name string
|
|
|
|
reducers []AggregateReducer
|
|
|
|
}
|
|
|
|
|
2024-12-06 11:32:53 +00:00
|
|
|
// ActiveInstances implements [Projection]
|
|
|
|
func (p *projection) ActiveInstances() []string {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name implements [Projection]
|
2023-10-19 10:19:10 +00:00
|
|
|
func (p *projection) Name() string {
|
|
|
|
return p.name
|
|
|
|
}
|
|
|
|
|
2024-12-06 11:32:53 +00:00
|
|
|
// Reducers implements [Projection]
|
2023-10-19 10:19:10 +00:00
|
|
|
func (p *projection) Reducers() []AggregateReducer {
|
|
|
|
return p.reducers
|
|
|
|
}
|