@codesoul-co/hypha-core / modules/execution-port/governed-execution-port
- Package index:
@codesoul-co/hypha-core - Source:
packages/core/src/modules/execution-port/governed-execution-port.ts - Exports: 1
Using this module
Use the Governed execution port module for defining or implementing provider-neutral ports. It exports 1 class.
Import from the package entrypoint
ts
import {
GovernedExecutionPort,
} from '@codesoul-co/hypha-core';Usage patterns
- The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
Public exports
| Symbol | Kind | Signature | Description |
|---|---|---|---|
GovernedExecutionPort | class | new GovernedExecutionPort(authorizationVerifier: ExecutionAuthorizationVerifier, dispatcher: ExecutionOperationDispatcher, now: () => string): GovernedExecutionPort | Governed Execution Port class with 2 public constructor or member entries; its exact declarations are listed below. |
GovernedExecutionPort
Governed Execution Port class with 2 public constructor or member entries; its exact declarations are listed below.
- Kind: class
- Import:
import { GovernedExecutionPort } from '@codesoul-co/hypha-core'; - Source module:
modules/execution-port/governed-execution-port
Declaration
text
export declare class GovernedExecutionPort implements ExecutionPort {
constructor(authorizationVerifier: ExecutionAuthorizationVerifier, dispatcher: ExecutionOperationDispatcher, now: () => string);
execute(input: ExecutionDispatchRequest, abortSignal: AbortSignal): Promise<ExecutionActivityResult>;
}Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
constructor | constructor | (authorizationVerifier: ExecutionAuthorizationVerifier, dispatcher: ExecutionOperationDispatcher, now: () => string): GovernedExecutionPort | Creates an instance of this class. |
execute | method | execute(input: ExecutionDispatchRequest, abortSignal: AbortSignal): Promise<ExecutionActivityResult> | Public method; parameters and return type are shown in the signature. |
