mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
19 lines
323 B
Go
19 lines
323 B
Go
|
package handler
|
||
|
|
||
|
var _ Projection = (*projection)(nil)
|
||
|
|
||
|
type projection struct {
|
||
|
name string
|
||
|
reducers []AggregateReducer
|
||
|
}
|
||
|
|
||
|
// Name implements Projection
|
||
|
func (p *projection) Name() string {
|
||
|
return p.name
|
||
|
}
|
||
|
|
||
|
// Reducers implements Projection
|
||
|
func (p *projection) Reducers() []AggregateReducer {
|
||
|
return p.reducers
|
||
|
}
|