Files
go-cart-actor/pkg/profile/mutation-context.go
T
mats 528c59bfd3
Build and Publish / BuildAndDeployAmd64 (push) Failing after 4s
Build and Publish / BuildAndDeployArm64 (push) Failing after 6s
cart and checkout
2026-06-27 19:49:00 +02:00

23 lines
640 B
Go

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),
actor.NewMutation(HandleAnonymizeProfile),
)
return reg
}