ModuleRegistryProtocol

public protocol ModuleRegistryProtocol<Config> : Sendable

Represents a ModuleRegistry protocol. A ModuleRegistry represents a registry of modules in the application.

  • Declaration

    Swift

    associatedtype Config : Sendable
  • id

    The UUID of the module

    Declaration

    Swift

    var id: UUID { get }
  • The priority of the module in the registry.

    Declaration

    Swift

    var priority: Int { get }
  • The configuration for the module.

    Declaration

    Swift

    var config: Config { get }
  • The function that sets up the module.

    Declaration

    Swift

    var setup: @Sendable (Setup<Config>) -> (Void) { get }
  • Registers the module to the workflow.

    Declaration

    Swift

    func register(workflow: Workflow)