mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:07:32 +00:00
update wiki links
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/zitadel/zitadel/backend/v3/storage/database"
|
"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.
|
// 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.
|
// If possible it should also be used for queries. We will find out if this is possible in the future.
|
||||||
type Commander interface {
|
type Commander interface {
|
||||||
|
@@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// The variables could also be moved to a struct.
|
// 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 (
|
var (
|
||||||
pool database.Pool
|
pool database.Pool
|
||||||
// userCodeAlgorithm crypto.EncryptionAlgorithm
|
// userCodeAlgorithm crypto.EncryptionAlgorithm
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Invoke provides a way to execute commands within the domain package.
|
// 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.
|
// 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].
|
// If you want to invoke multiple commands in a single transaction, you can use the [commandBatch].
|
||||||
func Invoke(ctx context.Context, cmd Commander) error {
|
func Invoke(ctx context.Context, cmd Commander) error {
|
||||||
|
Reference in New Issue
Block a user