add profile actors
Build and Publish / BuildAndDeployArm64 (push) Failing after 5s
Build and Publish / BuildAndDeployAmd64 (push) Failing after 3s

This commit is contained in:
2026-06-25 17:19:59 +02:00
parent faa5330b81
commit 86797e520e
18 changed files with 3436 additions and 10 deletions
+21
View File
@@ -0,0 +1,21 @@
package profile
import (
"git.k6n.net/mats/go-cart-actor/pkg/actor"
)
// NewProfileMutationRegistry creates a mutation registry with all profile
// mutation handlers registered.
func NewProfileMutationRegistry() actor.MutationRegistry {
reg := actor.NewMutationRegistry()
reg.RegisterMutations(
actor.NewMutation(HandleSetProfile),
actor.NewMutation(HandleAddAddress),
actor.NewMutation(HandleUpdateAddress),
actor.NewMutation(HandleRemoveAddress),
actor.NewMutation(HandleLinkCart),
actor.NewMutation(HandleLinkCheckout),
actor.NewMutation(HandleLinkOrder),
)
return reg
}