zitadel/pkg/grpc/management/changes.go
Florian Forster fa9f581d56
chore(v2): move to new org (#3499)
* chore: move to new org

* logging

* fix: org rename caos -> zitadel

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
2022-04-26 23:01:45 +00:00

50 lines
1.1 KiB
Go

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