mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 10:37:44 +00:00
update wiki links
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/zitadel/zitadel/backend/v3/storage/database"
|
||||
)
|
||||
|
||||
// Commander is all it needs to implement the [command pattern](https://github.com/zitadel/zitadel/wiki/WIP:-Software-Architecture#command-pattern).
|
||||
// Commander is all it needs to implement the [command pattern](https://github.com/zitadel/zitadel/wiki/Software-Architecture#command-pattern).
|
||||
// It is the interface all manipulations need to implement.
|
||||
// If possible it should also be used for queries. We will find out if this is possible in the future.
|
||||
type Commander interface {
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// The variables could also be moved to a struct.
|
||||
// I just started with the [singleton pattern](https://github.com/zitadel/zitadel/wiki/WIP:-Software-Architecture#singleton) and kept it like this.
|
||||
// I just started with the [singleton pattern](https://github.com/zitadel/zitadel/wiki/Software-Architecture#singleton) and kept it like this.
|
||||
var (
|
||||
pool database.Pool
|
||||
// userCodeAlgorithm crypto.EncryptionAlgorithm
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
// Invoke provides a way to execute commands within the domain package.
|
||||
// It uses the [chain of responsibility](https://github.com/zitadel/zitadel/wiki/WIP:-Software-Architecture#chain-of-responsibility) pattern to handle the command execution.
|
||||
// It uses the [chain of responsibility](https://github.com/zitadel/zitadel/wiki/Software-Architecture#chain-of-responsibility) pattern to handle the command execution.
|
||||
// The default chain includes logging, tracing, and event publishing.
|
||||
// If you want to invoke multiple commands in a single transaction, you can use the [commandBatch].
|
||||
func Invoke(ctx context.Context, cmd Commander) error {
|
||||
|
Reference in New Issue
Block a user