Packages · @purista/base-http-bridge

@purista/base-http-bridge

Signature

@purista/base-http-bridge.tstypescript
@purista/base-http-bridge

Classes

1 entry

HttpEventBridge

Classes

Source
HttpEventBridge.tstypescript
class HttpEventBridge<CustomConfig>

Stores the app value exposed by HttpEventBridge. Start the bridge before registering services and stop it during graceful shutdown. Expose only schemas and metadata that are safe for clients to inspect. Treat this property as runtime state unless the concrete API documents a stronger guarantee.

Interfaces

1 entry

HttpEventBridgeClient

Interfaces

Source
HttpEventBridgeClient.tstypescript
interface HttpEventBridgeClient

Adapter contract between HttpEventBridge and a sidecar or platform HTTP API.

Type Aliases

3 entries

HttpEventBridgeConfig

Types

Source
HttpEventBridgeConfig.tstypescript
type HttpEventBridgeConfig = void

Configuration for HTTP event bridges that host PURISTA command/subscription routes.

IHttpEventBridge

Types

Source
IHttpEventBridge.tstypescript
type IHttpEventBridge = { emitMessage: (message: Omit<EBMessage, "id" | "timestamp" | "correlationId">) => Promise<Readonly<unknown>>; isHealthy: () => Promise<boolean> } & EventBridgeBaseClass<HttpEventBridgeConfig>

Minimal bridge shape required by HTTP route handlers.

RouterFunction

Types

Source
RouterFunction.tstypescript
type RouterFunction = (this: T, c: Context) => Promise<Response>

Hono route handler bound to an HTTP event bridge instance.

Variables

1 entry

puristaVersion

Variables

Source
puristaVersion.tstypescript
const puristaVersion: "3.2.3"

Functions

1 entry

getDefaultHttpEventBridgeConfig

Functions

Source
getDefaultHttpEventBridgeConfig.tstypescript
getDefaultHttpEventBridgeConfig(): { apiPrefix: string; commandPayloadAsCloudEvent: boolean; defaultCommandTimeout: number; enableHttpCompression: boolean; enableRestApiExpose: boolean; instanceId: string; ... }