mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
19
apps/api/internal/actions/context.go
Normal file
19
apps/api/internal/actions/context.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user