zitadel/pkg/grpc/auth/changes.go
2020-07-09 18:47:54 +02:00

15 lines
326 B
Go

package auth
import "github.com/caos/zitadel/internal/api/grpc/server/middleware"
func (c *Changes) Localizers() []middleware.Localizer {
if c == nil {
return nil
}
localizers := make([]middleware.Localizer, len(c.Changes))
for i, change := range c.Changes {
localizers[i] = change.EventType
}
return localizers
}