mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 22:47:35 +00:00
20 lines
294 B
Go
20 lines
294 B
Go
package actions
|
|
|
|
type ctxConfig struct {
|
|
FieldConfig
|
|
}
|
|
|
|
type contextFields func(*ctxConfig)
|
|
|
|
func SetContextFields(opts ...FieldOption) contextFields {
|
|
return func(p *ctxConfig) {
|
|
if p.fields == nil {
|
|
p.fields = fields{}
|
|
}
|
|
|
|
for _, opt := range opts {
|
|
opt(&p.FieldConfig)
|
|
}
|
|
}
|
|
}
|