mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
38 lines
804 B
Go
38 lines
804 B
Go
|
package management
|
||
|
|
||
|
import "github.com/zitadel/zitadel/internal/api/grpc/server/middleware"
|
||
|
|
||
|
func (r *ListFlowTypesResponse) Localizers() (localizers []middleware.Localizer) {
|
||
|
if r == nil {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
localizers = make([]middleware.Localizer, 0, len(r.Result))
|
||
|
for _, typ := range r.Result {
|
||
|
localizers = append(localizers, typ.Localizers()...)
|
||
|
}
|
||
|
|
||
|
return localizers
|
||
|
}
|
||
|
|
||
|
func (r *ListFlowTriggerTypesResponse) Localizers() (localizers []middleware.Localizer) {
|
||
|
if r == nil {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
localizers = make([]middleware.Localizer, 0, len(r.Result))
|
||
|
for _, typ := range r.Result {
|
||
|
localizers = append(localizers, typ.Localizers()...)
|
||
|
}
|
||
|
|
||
|
return localizers
|
||
|
}
|
||
|
|
||
|
func (r *GetFlowResponse) Localizers() []middleware.Localizer {
|
||
|
if r == nil {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
return r.Flow.Localizers()
|
||
|
}
|