actor-ts 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +408 -0
- package/README.md +285 -269
- package/dist/ActorSystem.d.ts +3 -38
- package/dist/ActorSystem.d.ts.map +1 -1
- package/dist/ActorSystem.js +2 -2
- package/dist/ActorSystem.js.map +1 -1
- package/dist/ActorSystemOptions.d.ts +91 -0
- package/dist/ActorSystemOptions.d.ts.map +1 -0
- package/dist/ActorSystemOptions.js +45 -0
- package/dist/ActorSystemOptions.js.map +1 -0
- package/dist/Logger.d.ts +63 -0
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +146 -0
- package/dist/Logger.js.map +1 -1
- package/dist/cache/MemcachedCache.d.ts +2 -12
- package/dist/cache/MemcachedCache.d.ts.map +1 -1
- package/dist/cache/MemcachedCache.js +2 -1
- package/dist/cache/MemcachedCache.js.map +1 -1
- package/dist/cache/MemcachedCacheOptions.d.ts +40 -0
- package/dist/cache/MemcachedCacheOptions.d.ts.map +1 -0
- package/dist/cache/MemcachedCacheOptions.js +32 -0
- package/dist/cache/MemcachedCacheOptions.js.map +1 -0
- package/dist/cache/RedisCache.d.ts +2 -22
- package/dist/cache/RedisCache.d.ts.map +1 -1
- package/dist/cache/RedisCache.js +2 -1
- package/dist/cache/RedisCache.js.map +1 -1
- package/dist/cache/RedisCacheOptions.d.ts +56 -0
- package/dist/cache/RedisCacheOptions.d.ts.map +1 -0
- package/dist/cache/RedisCacheOptions.js +43 -0
- package/dist/cache/RedisCacheOptions.js.map +1 -0
- package/dist/cache/index.d.ts +6 -2
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/cache/index.js +2 -0
- package/dist/cache/index.js.map +1 -1
- package/dist/cluster/Cluster.d.ts +4 -63
- package/dist/cluster/Cluster.d.ts.map +1 -1
- package/dist/cluster/Cluster.js +10 -5
- package/dist/cluster/Cluster.js.map +1 -1
- package/dist/cluster/ClusterBootstrap.d.ts +6 -84
- package/dist/cluster/ClusterBootstrap.d.ts.map +1 -1
- package/dist/cluster/ClusterBootstrap.js +33 -21
- package/dist/cluster/ClusterBootstrap.js.map +1 -1
- package/dist/cluster/ClusterBootstrapOptions.d.ts +152 -0
- package/dist/cluster/ClusterBootstrapOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterBootstrapOptions.js +103 -0
- package/dist/cluster/ClusterBootstrapOptions.js.map +1 -0
- package/dist/cluster/ClusterClient.d.ts +21 -31
- package/dist/cluster/ClusterClient.d.ts.map +1 -1
- package/dist/cluster/ClusterClient.js +21 -6
- package/dist/cluster/ClusterClient.js.map +1 -1
- package/dist/cluster/ClusterClientOptions.d.ts +65 -0
- package/dist/cluster/ClusterClientOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterClientOptions.js +43 -0
- package/dist/cluster/ClusterClientOptions.js.map +1 -0
- package/dist/cluster/ClusterClientReceptionist.d.ts +2 -8
- package/dist/cluster/ClusterClientReceptionist.d.ts.map +1 -1
- package/dist/cluster/ClusterClientReceptionist.js +3 -1
- package/dist/cluster/ClusterClientReceptionist.js.map +1 -1
- package/dist/cluster/ClusterClientReceptionistOptions.d.ts +32 -0
- package/dist/cluster/ClusterClientReceptionistOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterClientReceptionistOptions.js +22 -0
- package/dist/cluster/ClusterClientReceptionistOptions.js.map +1 -0
- package/dist/cluster/ClusterOptions.d.ts +116 -0
- package/dist/cluster/ClusterOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterOptions.js +77 -0
- package/dist/cluster/ClusterOptions.js.map +1 -0
- package/dist/cluster/FailureDetector.d.ts +4 -11
- package/dist/cluster/FailureDetector.d.ts.map +1 -1
- package/dist/cluster/FailureDetector.js +4 -3
- package/dist/cluster/FailureDetector.js.map +1 -1
- package/dist/cluster/FailureDetectorOptions.d.ts +38 -0
- package/dist/cluster/FailureDetectorOptions.d.ts.map +1 -0
- package/dist/cluster/FailureDetectorOptions.js +31 -0
- package/dist/cluster/FailureDetectorOptions.js.map +1 -0
- package/dist/cluster/PhiAccrualFailureDetector.d.ts +3 -19
- package/dist/cluster/PhiAccrualFailureDetector.d.ts.map +1 -1
- package/dist/cluster/PhiAccrualFailureDetector.js +2 -2
- package/dist/cluster/PhiAccrualFailureDetector.js.map +1 -1
- package/dist/cluster/PhiAccrualOptions.d.ts +53 -0
- package/dist/cluster/PhiAccrualOptions.d.ts.map +1 -0
- package/dist/cluster/PhiAccrualOptions.js +43 -0
- package/dist/cluster/PhiAccrualOptions.js.map +1 -0
- package/dist/cluster/downing/KeepOldest.d.ts +2 -11
- package/dist/cluster/downing/KeepOldest.d.ts.map +1 -1
- package/dist/cluster/downing/KeepOldest.js +2 -2
- package/dist/cluster/downing/KeepOldest.js.map +1 -1
- package/dist/cluster/downing/KeepOldestOptions.d.ts +34 -0
- package/dist/cluster/downing/KeepOldestOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepOldestOptions.js +23 -0
- package/dist/cluster/downing/KeepOldestOptions.js.map +1 -0
- package/dist/cluster/downing/KeepReferee.d.ts +2 -10
- package/dist/cluster/downing/KeepReferee.d.ts.map +1 -1
- package/dist/cluster/downing/KeepReferee.js +3 -3
- package/dist/cluster/downing/KeepReferee.js.map +1 -1
- package/dist/cluster/downing/KeepRefereeOptions.d.ts +35 -0
- package/dist/cluster/downing/KeepRefereeOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepRefereeOptions.js +25 -0
- package/dist/cluster/downing/KeepRefereeOptions.js.map +1 -0
- package/dist/cluster/downing/LeaseMajority.d.ts +63 -21
- package/dist/cluster/downing/LeaseMajority.d.ts.map +1 -1
- package/dist/cluster/downing/LeaseMajority.js +132 -9
- package/dist/cluster/downing/LeaseMajority.js.map +1 -1
- package/dist/cluster/downing/LeaseMajorityOptions.d.ts +49 -0
- package/dist/cluster/downing/LeaseMajorityOptions.d.ts.map +1 -0
- package/dist/cluster/downing/LeaseMajorityOptions.js +31 -0
- package/dist/cluster/downing/LeaseMajorityOptions.js.map +1 -0
- package/dist/cluster/downing/StaticQuorum.d.ts +2 -7
- package/dist/cluster/downing/StaticQuorum.d.ts.map +1 -1
- package/dist/cluster/downing/StaticQuorum.js +3 -3
- package/dist/cluster/downing/StaticQuorum.js.map +1 -1
- package/dist/cluster/downing/StaticQuorumOptions.d.ts +30 -0
- package/dist/cluster/downing/StaticQuorumOptions.d.ts.map +1 -0
- package/dist/cluster/downing/StaticQuorumOptions.js +23 -0
- package/dist/cluster/downing/StaticQuorumOptions.js.map +1 -0
- package/dist/cluster/downing/index.d.ts +8 -4
- package/dist/cluster/downing/index.d.ts.map +1 -1
- package/dist/cluster/downing/index.js +4 -0
- package/dist/cluster/downing/index.js.map +1 -1
- package/dist/cluster/index.d.ts +34 -19
- package/dist/cluster/index.d.ts.map +1 -1
- package/dist/cluster/index.js +15 -4
- package/dist/cluster/index.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubExtension.d.ts +2 -2
- package/dist/cluster/pubsub/DistributedPubSubExtension.d.ts.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubExtension.js +5 -2
- package/dist/cluster/pubsub/DistributedPubSubExtension.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts +3 -7
- package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubMediator.js +3 -3
- package/dist/cluster/pubsub/DistributedPubSubMediator.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts +29 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts.map +1 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.js +23 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.js.map +1 -0
- package/dist/cluster/pubsub/index.d.ts +2 -1
- package/dist/cluster/pubsub/index.d.ts.map +1 -1
- package/dist/cluster/pubsub/index.js +1 -0
- package/dist/cluster/pubsub/index.js.map +1 -1
- package/dist/cluster/router/ClusterRouter.d.ts +12 -32
- package/dist/cluster/router/ClusterRouter.d.ts.map +1 -1
- package/dist/cluster/router/ClusterRouter.js +4 -2
- package/dist/cluster/router/ClusterRouter.js.map +1 -1
- package/dist/cluster/router/ClusterRouterOptions.d.ts +60 -0
- package/dist/cluster/router/ClusterRouterOptions.d.ts.map +1 -0
- package/dist/cluster/router/ClusterRouterOptions.js +41 -0
- package/dist/cluster/router/ClusterRouterOptions.js.map +1 -0
- package/dist/cluster/router/index.d.ts +3 -1
- package/dist/cluster/router/index.d.ts.map +1 -1
- package/dist/cluster/router/index.js +1 -0
- package/dist/cluster/router/index.js.map +1 -1
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.d.ts +1 -15
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.d.ts.map +1 -1
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.js +35 -2
- package/dist/cluster/sharding/CassandraRememberEntitiesStore.js.map +1 -1
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.d.ts +63 -0
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.js +63 -0
- package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.js.map +1 -0
- package/dist/cluster/sharding/ClusterSharding.d.ts +18 -64
- package/dist/cluster/sharding/ClusterSharding.d.ts.map +1 -1
- package/dist/cluster/sharding/ClusterSharding.js +44 -20
- package/dist/cluster/sharding/ClusterSharding.js.map +1 -1
- package/dist/cluster/sharding/CoordinatorState.d.ts +1 -1
- package/dist/cluster/sharding/CoordinatorState.js +1 -1
- package/dist/cluster/sharding/ShardCoordinator.d.ts +3 -63
- package/dist/cluster/sharding/ShardCoordinator.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardCoordinator.js +3 -3
- package/dist/cluster/sharding/ShardCoordinator.js.map +1 -1
- package/dist/cluster/sharding/ShardCoordinatorOptions.d.ts +111 -0
- package/dist/cluster/sharding/ShardCoordinatorOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardCoordinatorOptions.js +69 -0
- package/dist/cluster/sharding/ShardCoordinatorOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardRegion.d.ts +2 -33
- package/dist/cluster/sharding/ShardRegion.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardRegion.js.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcess.d.ts +2 -22
- package/dist/cluster/sharding/ShardedDaemonProcess.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcess.js +14 -11
- package/dist/cluster/sharding/ShardedDaemonProcess.js.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts +51 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.js +35 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardingOptions.d.ts +84 -0
- package/dist/cluster/sharding/ShardingOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardingOptions.js +62 -0
- package/dist/cluster/sharding/ShardingOptions.js.map +1 -0
- package/dist/cluster/sharding/StartShardingOptions.d.ts +98 -0
- package/dist/cluster/sharding/StartShardingOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/StartShardingOptions.js +52 -0
- package/dist/cluster/sharding/StartShardingOptions.js.map +1 -0
- package/dist/cluster/singleton/ClusterSingleton.d.ts +2 -30
- package/dist/cluster/singleton/ClusterSingleton.d.ts.map +1 -1
- package/dist/cluster/singleton/ClusterSingleton.js +15 -9
- package/dist/cluster/singleton/ClusterSingleton.js.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManager.d.ts +3 -18
- package/dist/cluster/singleton/ClusterSingletonManager.d.ts.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManager.js +3 -3
- package/dist/cluster/singleton/ClusterSingletonManager.js.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.d.ts +49 -0
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.d.ts.map +1 -0
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.js +40 -0
- package/dist/cluster/singleton/ClusterSingletonManagerOptions.js.map +1 -0
- package/dist/cluster/singleton/StartSingletonOptions.d.ts +64 -0
- package/dist/cluster/singleton/StartSingletonOptions.d.ts.map +1 -0
- package/dist/cluster/singleton/StartSingletonOptions.js +40 -0
- package/dist/cluster/singleton/StartSingletonOptions.js.map +1 -0
- package/dist/cluster/singleton/index.d.ts +6 -2
- package/dist/cluster/singleton/index.d.ts.map +1 -1
- package/dist/cluster/singleton/index.js +2 -0
- package/dist/cluster/singleton/index.js.map +1 -1
- package/dist/config/ConfigKeys.d.ts +5 -0
- package/dist/config/ConfigKeys.d.ts.map +1 -1
- package/dist/config/ConfigKeys.js +5 -0
- package/dist/config/ConfigKeys.js.map +1 -1
- package/dist/coordination/Lease.d.ts +32 -14
- package/dist/coordination/Lease.d.ts.map +1 -1
- package/dist/coordination/LeaseOptions.d.ts +61 -0
- package/dist/coordination/LeaseOptions.d.ts.map +1 -0
- package/dist/coordination/LeaseOptions.js +50 -0
- package/dist/coordination/LeaseOptions.js.map +1 -0
- package/dist/coordination/index.d.ts +5 -2
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +2 -0
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/leases/InMemoryLease.d.ts +18 -5
- package/dist/coordination/leases/InMemoryLease.d.ts.map +1 -1
- package/dist/coordination/leases/InMemoryLease.js +23 -11
- package/dist/coordination/leases/InMemoryLease.js.map +1 -1
- package/dist/coordination/leases/KubernetesLease.d.ts +19 -24
- package/dist/coordination/leases/KubernetesLease.d.ts.map +1 -1
- package/dist/coordination/leases/KubernetesLease.js +28 -9
- package/dist/coordination/leases/KubernetesLease.js.map +1 -1
- package/dist/coordination/leases/KubernetesLeaseOptions.d.ts +58 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.d.ts.map +1 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.js +42 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.js.map +1 -0
- package/dist/crdt/DistributedData.d.ts +2 -22
- package/dist/crdt/DistributedData.d.ts.map +1 -1
- package/dist/crdt/DistributedData.js +3 -2
- package/dist/crdt/DistributedData.js.map +1 -1
- package/dist/crdt/DistributedDataOptions.d.ts +50 -0
- package/dist/crdt/DistributedDataOptions.d.ts.map +1 -0
- package/dist/crdt/DistributedDataOptions.js +28 -0
- package/dist/crdt/DistributedDataOptions.js.map +1 -0
- package/dist/crdt/index.d.ts +3 -1
- package/dist/crdt/index.d.ts.map +1 -1
- package/dist/crdt/index.js +1 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/delivery/ProducerController.d.ts +4 -19
- package/dist/delivery/ProducerController.d.ts.map +1 -1
- package/dist/delivery/ProducerController.js +4 -3
- package/dist/delivery/ProducerController.js.map +1 -1
- package/dist/delivery/ProducerControllerOptions.d.ts +50 -0
- package/dist/delivery/ProducerControllerOptions.d.ts.map +1 -0
- package/dist/delivery/ProducerControllerOptions.js +36 -0
- package/dist/delivery/ProducerControllerOptions.js.map +1 -0
- package/dist/delivery/ReliableDelivery.d.ts +3 -2
- package/dist/delivery/ReliableDelivery.d.ts.map +1 -1
- package/dist/delivery/ReliableDelivery.js +2 -2
- package/dist/delivery/ReliableDelivery.js.map +1 -1
- package/dist/delivery/index.d.ts +3 -1
- package/dist/delivery/index.d.ts.map +1 -1
- package/dist/delivery/index.js +1 -0
- package/dist/delivery/index.js.map +1 -1
- package/dist/discovery/AutoDiscoveryOptions.d.ts +72 -0
- package/dist/discovery/AutoDiscoveryOptions.d.ts.map +1 -0
- package/dist/discovery/AutoDiscoveryOptions.js +34 -0
- package/dist/discovery/AutoDiscoveryOptions.js.map +1 -0
- package/dist/discovery/ConfigSeedProvider.d.ts +2 -7
- package/dist/discovery/ConfigSeedProvider.d.ts.map +1 -1
- package/dist/discovery/ConfigSeedProvider.js +4 -3
- package/dist/discovery/ConfigSeedProvider.js.map +1 -1
- package/dist/discovery/ConfigSeedProviderOptions.d.ts +34 -0
- package/dist/discovery/ConfigSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/ConfigSeedProviderOptions.js +27 -0
- package/dist/discovery/ConfigSeedProviderOptions.js.map +1 -0
- package/dist/discovery/DnsSeedProvider.d.ts +3 -27
- package/dist/discovery/DnsSeedProvider.d.ts.map +1 -1
- package/dist/discovery/DnsSeedProvider.js +4 -4
- package/dist/discovery/DnsSeedProvider.js.map +1 -1
- package/dist/discovery/DnsSeedProviderOptions.d.ts +67 -0
- package/dist/discovery/DnsSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/DnsSeedProviderOptions.js +48 -0
- package/dist/discovery/DnsSeedProviderOptions.js.map +1 -0
- package/dist/discovery/KubernetesApiSeedProvider.d.ts +2 -13
- package/dist/discovery/KubernetesApiSeedProvider.d.ts.map +1 -1
- package/dist/discovery/KubernetesApiSeedProvider.js +2 -2
- package/dist/discovery/KubernetesApiSeedProvider.js.map +1 -1
- package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts +46 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.js +39 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.js.map +1 -0
- package/dist/discovery/Receptionist.d.ts +3 -6
- package/dist/discovery/Receptionist.d.ts.map +1 -1
- package/dist/discovery/Receptionist.js +10 -3
- package/dist/discovery/Receptionist.js.map +1 -1
- package/dist/discovery/ReceptionistOptions.d.ts +30 -0
- package/dist/discovery/ReceptionistOptions.d.ts.map +1 -0
- package/dist/discovery/ReceptionistOptions.js +24 -0
- package/dist/discovery/ReceptionistOptions.js.map +1 -0
- package/dist/discovery/autoDiscovery.d.ts +3 -44
- package/dist/discovery/autoDiscovery.d.ts.map +1 -1
- package/dist/discovery/autoDiscovery.js +31 -32
- package/dist/discovery/autoDiscovery.js.map +1 -1
- package/dist/discovery/index.d.ts +10 -5
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/index.js +5 -0
- package/dist/discovery/index.js.map +1 -1
- package/dist/http/HttpExtension.d.ts.map +1 -1
- package/dist/http/HttpExtension.js +69 -8
- package/dist/http/HttpExtension.js.map +1 -1
- package/dist/http/Route.d.ts +76 -4
- package/dist/http/Route.d.ts.map +1 -1
- package/dist/http/Route.js +74 -1
- package/dist/http/Route.js.map +1 -1
- package/dist/http/backend/ExpressBackend.d.ts +18 -12
- package/dist/http/backend/ExpressBackend.d.ts.map +1 -1
- package/dist/http/backend/ExpressBackend.js +134 -8
- package/dist/http/backend/ExpressBackend.js.map +1 -1
- package/dist/http/backend/ExpressBackendOptions.d.ts +47 -0
- package/dist/http/backend/ExpressBackendOptions.d.ts.map +1 -0
- package/dist/http/backend/ExpressBackendOptions.js +35 -0
- package/dist/http/backend/ExpressBackendOptions.js.map +1 -0
- package/dist/http/backend/FastifyBackend.d.ts +4 -1
- package/dist/http/backend/FastifyBackend.d.ts.map +1 -1
- package/dist/http/backend/FastifyBackend.js +71 -1
- package/dist/http/backend/FastifyBackend.js.map +1 -1
- package/dist/http/backend/HonoBackend.d.ts +19 -13
- package/dist/http/backend/HonoBackend.d.ts.map +1 -1
- package/dist/http/backend/HonoBackend.js +152 -5
- package/dist/http/backend/HonoBackend.js.map +1 -1
- package/dist/http/backend/HonoBackendOptions.d.ts +47 -0
- package/dist/http/backend/HonoBackendOptions.d.ts.map +1 -0
- package/dist/http/backend/HonoBackendOptions.js +35 -0
- package/dist/http/backend/HonoBackendOptions.js.map +1 -0
- package/dist/http/backend/HttpServerBackend.d.ts +24 -0
- package/dist/http/backend/HttpServerBackend.d.ts.map +1 -1
- package/dist/http/index.d.ts +11 -5
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +8 -1
- package/dist/http/index.js.map +1 -1
- package/dist/http/middleware/BearerToken.d.ts +44 -0
- package/dist/http/middleware/BearerToken.d.ts.map +1 -0
- package/dist/http/middleware/BearerToken.js +72 -0
- package/dist/http/middleware/BearerToken.js.map +1 -0
- package/dist/http/middleware/IpAllowlist.d.ts +45 -0
- package/dist/http/middleware/IpAllowlist.d.ts.map +1 -0
- package/dist/http/middleware/IpAllowlist.js +148 -0
- package/dist/http/middleware/IpAllowlist.js.map +1 -0
- package/dist/http/middleware/index.d.ts +5 -0
- package/dist/http/middleware/index.d.ts.map +1 -0
- package/dist/http/middleware/index.js +3 -0
- package/dist/http/middleware/index.js.map +1 -0
- package/dist/http/types.d.ts +9 -0
- package/dist/http/types.d.ts.map +1 -1
- package/dist/http/types.js.map +1 -1
- package/dist/http/ws/ConnectionWiring.d.ts +59 -0
- package/dist/http/ws/ConnectionWiring.d.ts.map +1 -0
- package/dist/http/ws/ConnectionWiring.js +112 -0
- package/dist/http/ws/ConnectionWiring.js.map +1 -0
- package/dist/http/ws/SocketAdapter.d.ts +72 -0
- package/dist/http/ws/SocketAdapter.d.ts.map +1 -0
- package/dist/http/ws/SocketAdapter.js +97 -0
- package/dist/http/ws/SocketAdapter.js.map +1 -0
- package/dist/http/ws/WebSocketClientActor.d.ts +66 -0
- package/dist/http/ws/WebSocketClientActor.d.ts.map +1 -0
- package/dist/http/ws/WebSocketClientActor.js +194 -0
- package/dist/http/ws/WebSocketClientActor.js.map +1 -0
- package/dist/http/ws/WebSocketClientOptions.d.ts +77 -0
- package/dist/http/ws/WebSocketClientOptions.d.ts.map +1 -0
- package/dist/http/ws/WebSocketClientOptions.js +69 -0
- package/dist/http/ws/WebSocketClientOptions.js.map +1 -0
- package/dist/http/ws/WebSocketConnectionActor.d.ts +51 -0
- package/dist/http/ws/WebSocketConnectionActor.d.ts.map +1 -0
- package/dist/http/ws/WebSocketConnectionActor.js +170 -0
- package/dist/http/ws/WebSocketConnectionActor.js.map +1 -0
- package/dist/http/ws/WebSocketRoute.d.ts +20 -0
- package/dist/http/ws/WebSocketRoute.d.ts.map +1 -0
- package/dist/http/ws/WebSocketRoute.js +44 -0
- package/dist/http/ws/WebSocketRoute.js.map +1 -0
- package/dist/http/ws/WebSocketRouteOptions.d.ts +54 -0
- package/dist/http/ws/WebSocketRouteOptions.d.ts.map +1 -0
- package/dist/http/ws/WebSocketRouteOptions.js +55 -0
- package/dist/http/ws/WebSocketRouteOptions.js.map +1 -0
- package/dist/http/ws/WebSocketServerActor.d.ts +65 -0
- package/dist/http/ws/WebSocketServerActor.d.ts.map +1 -0
- package/dist/http/ws/WebSocketServerActor.js +133 -0
- package/dist/http/ws/WebSocketServerActor.js.map +1 -0
- package/dist/http/ws/WsCodec.d.ts +65 -0
- package/dist/http/ws/WsCodec.d.ts.map +1 -0
- package/dist/http/ws/WsCodec.js +82 -0
- package/dist/http/ws/WsCodec.js.map +1 -0
- package/dist/http/ws/WsConnection.d.ts +59 -0
- package/dist/http/ws/WsConnection.d.ts.map +1 -0
- package/dist/http/ws/WsConnection.js +45 -0
- package/dist/http/ws/WsConnection.js.map +1 -0
- package/dist/http/ws/WsMessages.d.ts +91 -0
- package/dist/http/ws/WsMessages.d.ts.map +1 -0
- package/dist/http/ws/WsMessages.js +90 -0
- package/dist/http/ws/WsMessages.js.map +1 -0
- package/dist/http/ws/WsPolicy.d.ts +32 -0
- package/dist/http/ws/WsPolicy.d.ts.map +1 -0
- package/dist/http/ws/WsPolicy.js +43 -0
- package/dist/http/ws/WsPolicy.js.map +1 -0
- package/dist/http/ws/index.d.ts +22 -0
- package/dist/http/ws/index.d.ts.map +1 -0
- package/dist/http/ws/index.js +15 -0
- package/dist/http/ws/index.js.map +1 -0
- package/dist/http/ws/matchPattern.d.ts +12 -0
- package/dist/http/ws/matchPattern.d.ts.map +1 -0
- package/dist/http/ws/matchPattern.js +29 -0
- package/dist/http/ws/matchPattern.js.map +1 -0
- package/dist/http/ws/rawResponse.d.ts +15 -0
- package/dist/http/ws/rawResponse.d.ts.map +1 -0
- package/dist/http/ws/rawResponse.js +54 -0
- package/dist/http/ws/rawResponse.js.map +1 -0
- package/dist/http/ws/types.d.ts +70 -0
- package/dist/http/ws/types.d.ts.map +1 -0
- package/dist/http/ws/types.js +81 -0
- package/dist/http/ws/types.js.map +1 -0
- package/dist/http/ws/wsCtor.d.ts +34 -0
- package/dist/http/ws/wsCtor.d.ts.map +1 -0
- package/dist/http/ws/wsCtor.js +38 -0
- package/dist/http/ws/wsCtor.js.map +1 -0
- package/dist/index.d.ts +25 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -11
- package/dist/index.js.map +1 -1
- package/dist/internal/ActorCell.d.ts +16 -1
- package/dist/internal/ActorCell.d.ts.map +1 -1
- package/dist/internal/ActorCell.js +32 -2
- package/dist/internal/ActorCell.js.map +1 -1
- package/dist/io/broker/AmqpActor.d.ts +19 -16
- package/dist/io/broker/AmqpActor.d.ts.map +1 -1
- package/dist/io/broker/AmqpActor.js +13 -5
- package/dist/io/broker/AmqpActor.js.map +1 -1
- package/dist/io/broker/AmqpOptions.d.ts +41 -0
- package/dist/io/broker/AmqpOptions.d.ts.map +1 -0
- package/dist/io/broker/AmqpOptions.js +34 -0
- package/dist/io/broker/AmqpOptions.js.map +1 -0
- package/dist/io/broker/BrokerActor.d.ts +4 -3
- package/dist/io/broker/BrokerActor.d.ts.map +1 -1
- package/dist/io/broker/BrokerActor.js +4 -2
- package/dist/io/broker/BrokerActor.js.map +1 -1
- package/dist/io/broker/BrokerOptions.d.ts +24 -0
- package/dist/io/broker/BrokerOptions.d.ts.map +1 -0
- package/dist/io/broker/BrokerOptions.js +29 -0
- package/dist/io/broker/BrokerOptions.js.map +1 -0
- package/dist/io/broker/BrokerSettings.d.ts +2 -2
- package/dist/io/broker/BrokerSettings.d.ts.map +1 -1
- package/dist/io/broker/BrokerSettings.js.map +1 -1
- package/dist/io/broker/GrpcClientActor.d.ts +6 -19
- package/dist/io/broker/GrpcClientActor.d.ts.map +1 -1
- package/dist/io/broker/GrpcClientActor.js +1 -1
- package/dist/io/broker/GrpcClientActor.js.map +1 -1
- package/dist/io/broker/GrpcClientOptions.d.ts +48 -0
- package/dist/io/broker/GrpcClientOptions.d.ts.map +1 -0
- package/dist/io/broker/GrpcClientOptions.js +42 -0
- package/dist/io/broker/GrpcClientOptions.js.map +1 -0
- package/dist/io/broker/GrpcServerActor.d.ts +3 -24
- package/dist/io/broker/GrpcServerActor.d.ts.map +1 -1
- package/dist/io/broker/GrpcServerActor.js +3 -3
- package/dist/io/broker/GrpcServerActor.js.map +1 -1
- package/dist/io/broker/GrpcServerOptions.d.ts +58 -0
- package/dist/io/broker/GrpcServerOptions.d.ts.map +1 -0
- package/dist/io/broker/GrpcServerOptions.js +44 -0
- package/dist/io/broker/GrpcServerOptions.js.map +1 -0
- package/dist/io/broker/JetStreamActor.d.ts +13 -35
- package/dist/io/broker/JetStreamActor.d.ts.map +1 -1
- package/dist/io/broker/JetStreamActor.js +2 -2
- package/dist/io/broker/JetStreamActor.js.map +1 -1
- package/dist/io/broker/JetStreamOptions.d.ts +64 -0
- package/dist/io/broker/JetStreamOptions.d.ts.map +1 -0
- package/dist/io/broker/JetStreamOptions.js +54 -0
- package/dist/io/broker/JetStreamOptions.js.map +1 -0
- package/dist/io/broker/KafkaActor.d.ts +13 -54
- package/dist/io/broker/KafkaActor.d.ts.map +1 -1
- package/dist/io/broker/KafkaActor.js +20 -8
- package/dist/io/broker/KafkaActor.js.map +1 -1
- package/dist/io/broker/KafkaOptions.d.ts +82 -0
- package/dist/io/broker/KafkaOptions.d.ts.map +1 -0
- package/dist/io/broker/KafkaOptions.js +50 -0
- package/dist/io/broker/KafkaOptions.js.map +1 -0
- package/dist/io/broker/MqttActor.d.ts +174 -114
- package/dist/io/broker/MqttActor.d.ts.map +1 -1
- package/dist/io/broker/MqttActor.js +328 -103
- package/dist/io/broker/MqttActor.js.map +1 -1
- package/dist/io/broker/MqttCodec.d.ts +70 -0
- package/dist/io/broker/MqttCodec.d.ts.map +1 -0
- package/dist/io/broker/MqttCodec.js +98 -0
- package/dist/io/broker/MqttCodec.js.map +1 -0
- package/dist/io/broker/MqttMessages.d.ts +145 -0
- package/dist/io/broker/MqttMessages.d.ts.map +1 -0
- package/dist/io/broker/MqttMessages.js +102 -0
- package/dist/io/broker/MqttMessages.js.map +1 -0
- package/dist/io/broker/MqttOptions.d.ts +100 -0
- package/dist/io/broker/MqttOptions.d.ts.map +1 -0
- package/dist/io/broker/MqttOptions.js +73 -0
- package/dist/io/broker/MqttOptions.js.map +1 -0
- package/dist/io/broker/NatsActor.d.ts +6 -21
- package/dist/io/broker/NatsActor.d.ts.map +1 -1
- package/dist/io/broker/NatsActor.js +1 -1
- package/dist/io/broker/NatsActor.js.map +1 -1
- package/dist/io/broker/NatsOptions.d.ts +51 -0
- package/dist/io/broker/NatsOptions.d.ts.map +1 -0
- package/dist/io/broker/NatsOptions.js +42 -0
- package/dist/io/broker/NatsOptions.js.map +1 -0
- package/dist/io/broker/RedisStreamsActor.d.ts +6 -24
- package/dist/io/broker/RedisStreamsActor.d.ts.map +1 -1
- package/dist/io/broker/RedisStreamsActor.js +1 -1
- package/dist/io/broker/RedisStreamsActor.js.map +1 -1
- package/dist/io/broker/RedisStreamsOptions.d.ts +51 -0
- package/dist/io/broker/RedisStreamsOptions.d.ts.map +1 -0
- package/dist/io/broker/RedisStreamsOptions.js +38 -0
- package/dist/io/broker/RedisStreamsOptions.js.map +1 -0
- package/dist/io/broker/SseActor.d.ts +6 -15
- package/dist/io/broker/SseActor.d.ts.map +1 -1
- package/dist/io/broker/SseActor.js +1 -1
- package/dist/io/broker/SseActor.js.map +1 -1
- package/dist/io/broker/SseOptions.d.ts +38 -0
- package/dist/io/broker/SseOptions.d.ts.map +1 -0
- package/dist/io/broker/SseOptions.js +30 -0
- package/dist/io/broker/SseOptions.js.map +1 -0
- package/dist/io/broker/TcpSocketActor.d.ts +6 -21
- package/dist/io/broker/TcpSocketActor.d.ts.map +1 -1
- package/dist/io/broker/TcpSocketActor.js +1 -1
- package/dist/io/broker/TcpSocketActor.js.map +1 -1
- package/dist/io/broker/TcpSocketOptions.d.ts +46 -0
- package/dist/io/broker/TcpSocketOptions.d.ts.map +1 -0
- package/dist/io/broker/TcpSocketOptions.js +34 -0
- package/dist/io/broker/TcpSocketOptions.js.map +1 -0
- package/dist/io/broker/UdpSocketActor.d.ts +6 -17
- package/dist/io/broker/UdpSocketActor.d.ts.map +1 -1
- package/dist/io/broker/UdpSocketActor.js +1 -1
- package/dist/io/broker/UdpSocketActor.js.map +1 -1
- package/dist/io/broker/UdpSocketOptions.d.ts +42 -0
- package/dist/io/broker/UdpSocketOptions.d.ts.map +1 -0
- package/dist/io/broker/UdpSocketOptions.js +34 -0
- package/dist/io/broker/UdpSocketOptions.js.map +1 -0
- package/dist/io/broker/index.d.ts +39 -19
- package/dist/io/broker/index.d.ts.map +1 -1
- package/dist/io/broker/index.js +21 -4
- package/dist/io/broker/index.js.map +1 -1
- package/dist/mailbox/BoundedMailbox.d.ts +12 -0
- package/dist/mailbox/BoundedMailbox.d.ts.map +1 -1
- package/dist/mailbox/BoundedMailbox.js +7 -1
- package/dist/mailbox/BoundedMailbox.js.map +1 -1
- package/dist/management/HttpManagement.d.ts +34 -1
- package/dist/management/HttpManagement.d.ts.map +1 -1
- package/dist/management/HttpManagement.js +30 -4
- package/dist/management/HttpManagement.js.map +1 -1
- package/dist/metrics/PromClientAdapter.d.ts +2 -12
- package/dist/metrics/PromClientAdapter.d.ts.map +1 -1
- package/dist/metrics/PromClientAdapter.js +2 -2
- package/dist/metrics/PromClientAdapter.js.map +1 -1
- package/dist/metrics/PromClientAdapterOptions.d.ts +46 -0
- package/dist/metrics/PromClientAdapterOptions.d.ts.map +1 -0
- package/dist/metrics/PromClientAdapterOptions.js +35 -0
- package/dist/metrics/PromClientAdapterOptions.js.map +1 -0
- package/dist/metrics/index.d.ts +3 -1
- package/dist/metrics/index.d.ts.map +1 -1
- package/dist/metrics/index.js +1 -0
- package/dist/metrics/index.js.map +1 -1
- package/dist/persistence/DurableStateActor.d.ts +4 -9
- package/dist/persistence/DurableStateActor.d.ts.map +1 -1
- package/dist/persistence/DurableStateActor.js +3 -3
- package/dist/persistence/DurableStateActor.js.map +1 -1
- package/dist/persistence/DurableStateOptions.d.ts +40 -0
- package/dist/persistence/DurableStateOptions.d.ts.map +1 -0
- package/dist/persistence/DurableStateOptions.js +36 -0
- package/dist/persistence/DurableStateOptions.js.map +1 -0
- package/dist/persistence/PersistenceOptions.d.ts +45 -0
- package/dist/persistence/PersistenceOptions.d.ts.map +1 -1
- package/dist/persistence/ReplicatedEventSourcedActor.d.ts.map +1 -1
- package/dist/persistence/ReplicatedEventSourcedActor.js +2 -2
- package/dist/persistence/ReplicatedEventSourcedActor.js.map +1 -1
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.d.ts +32 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.js +120 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.js.map +1 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.d.ts +38 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.js +38 -0
- package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.js.map +1 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts +4 -9
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts.map +1 -1
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js +49 -7
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js.map +1 -1
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts +61 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js +42 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.d.ts +38 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.js +121 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStore.js.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.d.ts +38 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.js +38 -0
- package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.js.map +1 -0
- package/dist/persistence/index.d.ts +59 -16
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +33 -2
- package/dist/persistence/index.js.map +1 -1
- package/dist/persistence/journals/CassandraJournal.d.ts +1 -48
- package/dist/persistence/journals/CassandraJournal.d.ts.map +1 -1
- package/dist/persistence/journals/CassandraJournal.js +2 -2
- package/dist/persistence/journals/CassandraJournal.js.map +1 -1
- package/dist/persistence/journals/CassandraJournalOptions.d.ts +107 -0
- package/dist/persistence/journals/CassandraJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/CassandraJournalOptions.js +90 -0
- package/dist/persistence/journals/CassandraJournalOptions.js.map +1 -0
- package/dist/persistence/journals/CassandraPlugin.d.ts +1 -16
- package/dist/persistence/journals/CassandraPlugin.d.ts.map +1 -1
- package/dist/persistence/journals/CassandraPlugin.js +9 -4
- package/dist/persistence/journals/CassandraPlugin.js.map +1 -1
- package/dist/persistence/journals/CassandraPluginOptions.d.ts +51 -0
- package/dist/persistence/journals/CassandraPluginOptions.d.ts.map +1 -0
- package/dist/persistence/journals/CassandraPluginOptions.js +37 -0
- package/dist/persistence/journals/CassandraPluginOptions.js.map +1 -0
- package/dist/persistence/journals/MariaDbClient.d.ts +54 -0
- package/dist/persistence/journals/MariaDbClient.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbClient.js +40 -0
- package/dist/persistence/journals/MariaDbClient.js.map +1 -0
- package/dist/persistence/journals/MariaDbJournal.d.ts +29 -0
- package/dist/persistence/journals/MariaDbJournal.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbJournal.js +161 -0
- package/dist/persistence/journals/MariaDbJournal.js.map +1 -0
- package/dist/persistence/journals/MariaDbJournalOptions.d.ts +43 -0
- package/dist/persistence/journals/MariaDbJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbJournalOptions.js +43 -0
- package/dist/persistence/journals/MariaDbJournalOptions.js.map +1 -0
- package/dist/persistence/journals/MariaDbPlugin.d.ts +27 -0
- package/dist/persistence/journals/MariaDbPlugin.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbPlugin.js +30 -0
- package/dist/persistence/journals/MariaDbPlugin.js.map +1 -0
- package/dist/persistence/journals/MariaDbPluginOptions.d.ts +52 -0
- package/dist/persistence/journals/MariaDbPluginOptions.d.ts.map +1 -0
- package/dist/persistence/journals/MariaDbPluginOptions.js +38 -0
- package/dist/persistence/journals/MariaDbPluginOptions.js.map +1 -0
- package/dist/persistence/journals/PostgresClient.d.ts +56 -0
- package/dist/persistence/journals/PostgresClient.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresClient.js +35 -0
- package/dist/persistence/journals/PostgresClient.js.map +1 -0
- package/dist/persistence/journals/PostgresJournal.d.ts +41 -0
- package/dist/persistence/journals/PostgresJournal.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresJournal.js +176 -0
- package/dist/persistence/journals/PostgresJournal.js.map +1 -0
- package/dist/persistence/journals/PostgresJournalOptions.d.ts +44 -0
- package/dist/persistence/journals/PostgresJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresJournalOptions.js +44 -0
- package/dist/persistence/journals/PostgresJournalOptions.js.map +1 -0
- package/dist/persistence/journals/PostgresPlugin.d.ts +32 -0
- package/dist/persistence/journals/PostgresPlugin.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresPlugin.js +35 -0
- package/dist/persistence/journals/PostgresPlugin.js.map +1 -0
- package/dist/persistence/journals/PostgresPluginOptions.d.ts +54 -0
- package/dist/persistence/journals/PostgresPluginOptions.d.ts.map +1 -0
- package/dist/persistence/journals/PostgresPluginOptions.js +39 -0
- package/dist/persistence/journals/PostgresPluginOptions.js.map +1 -0
- package/dist/persistence/journals/SqliteJournal.d.ts +5 -19
- package/dist/persistence/journals/SqliteJournal.d.ts.map +1 -1
- package/dist/persistence/journals/SqliteJournal.js +10 -9
- package/dist/persistence/journals/SqliteJournal.js.map +1 -1
- package/dist/persistence/journals/SqliteJournalOptions.d.ts +41 -0
- package/dist/persistence/journals/SqliteJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/SqliteJournalOptions.js +31 -0
- package/dist/persistence/journals/SqliteJournalOptions.js.map +1 -0
- package/dist/persistence/object-storage/BodyCodec.d.ts +43 -0
- package/dist/persistence/object-storage/BodyCodec.d.ts.map +1 -1
- package/dist/persistence/object-storage/BodyCodec.js +78 -20
- package/dist/persistence/object-storage/BodyCodec.js.map +1 -1
- package/dist/persistence/object-storage/Compression.d.ts +21 -7
- package/dist/persistence/object-storage/Compression.d.ts.map +1 -1
- package/dist/persistence/object-storage/Compression.js +79 -29
- package/dist/persistence/object-storage/Compression.js.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.d.ts +2 -61
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.d.ts.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js +56 -11
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts +45 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js +30 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js.map +1 -0
- package/dist/persistence/object-storage/Integrity.d.ts +43 -0
- package/dist/persistence/object-storage/Integrity.d.ts.map +1 -0
- package/dist/persistence/object-storage/Integrity.js +66 -0
- package/dist/persistence/object-storage/Integrity.js.map +1 -0
- package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts +6 -22
- package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts.map +1 -1
- package/dist/persistence/object-storage/ObjectStoragePlugin.js +36 -28
- package/dist/persistence/object-storage/ObjectStoragePlugin.js.map +1 -1
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts +60 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.js +52 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.js.map +1 -0
- package/dist/persistence/object-storage/PluginConfig.d.ts +5 -2
- package/dist/persistence/object-storage/PluginConfig.d.ts.map +1 -1
- package/dist/persistence/object-storage/PluginConfig.js +8 -0
- package/dist/persistence/object-storage/PluginConfig.js.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageBackend.d.ts +1 -30
- package/dist/persistence/object-storage/S3ObjectStorageBackend.d.ts.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageBackend.js +12 -7
- package/dist/persistence/object-storage/S3ObjectStorageBackend.js.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts +64 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.js +42 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.js.map +1 -0
- package/dist/persistence/object-storage/reEncryptionSweep.d.ts +72 -0
- package/dist/persistence/object-storage/reEncryptionSweep.d.ts.map +1 -1
- package/dist/persistence/object-storage/reEncryptionSweep.js +82 -2
- package/dist/persistence/object-storage/reEncryptionSweep.js.map +1 -1
- package/dist/persistence/projection/ProjectionActor.d.ts +4 -24
- package/dist/persistence/projection/ProjectionActor.d.ts.map +1 -1
- package/dist/persistence/projection/ProjectionActor.js +36 -2
- package/dist/persistence/projection/ProjectionActor.js.map +1 -1
- package/dist/persistence/projection/ProjectionOptions.d.ts +109 -0
- package/dist/persistence/projection/ProjectionOptions.d.ts.map +1 -0
- package/dist/persistence/projection/ProjectionOptions.js +108 -0
- package/dist/persistence/projection/ProjectionOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.d.ts +2 -10
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.js +12 -6
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts +37 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js +31 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.d.ts +1 -11
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.js +3 -3
- package/dist/persistence/snapshot-stores/CassandraSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.d.ts +61 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.js +73 -0
- package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.d.ts +30 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.js +102 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.js.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.d.ts +42 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.js +42 -0
- package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts +2 -15
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js +10 -6
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts +45 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js +38 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.d.ts +31 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.js +101 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStore.js.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.d.ts +42 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.js +42 -0
- package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.js.map +1 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts +2 -15
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js +7 -6
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.d.ts +40 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.js +31 -0
- package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.js.map +1 -0
- package/dist/runtime/http/BunHonoRunner.d.ts +7 -1
- package/dist/runtime/http/BunHonoRunner.d.ts.map +1 -1
- package/dist/runtime/http/BunHonoRunner.js +22 -0
- package/dist/runtime/http/BunHonoRunner.js.map +1 -1
- package/dist/runtime/http/DenoHonoRunner.d.ts +5 -2
- package/dist/runtime/http/DenoHonoRunner.d.ts.map +1 -1
- package/dist/runtime/http/DenoHonoRunner.js +19 -2
- package/dist/runtime/http/DenoHonoRunner.js.map +1 -1
- package/dist/runtime/http/HonoServerRunner.d.ts +39 -0
- package/dist/runtime/http/HonoServerRunner.d.ts.map +1 -1
- package/dist/runtime/http/NodeHonoRunner.d.ts +3 -1
- package/dist/runtime/http/NodeHonoRunner.d.ts.map +1 -1
- package/dist/runtime/http/NodeHonoRunner.js +22 -0
- package/dist/runtime/http/NodeHonoRunner.js.map +1 -1
- package/dist/runtime/http/index.d.ts +1 -1
- package/dist/runtime/http/index.d.ts.map +1 -1
- package/dist/runtime/http/index.js.map +1 -1
- package/dist/testkit/ManualScheduler.d.ts +2 -1
- package/dist/testkit/ManualScheduler.d.ts.map +1 -1
- package/dist/testkit/ManualScheduler.js +2 -1
- package/dist/testkit/ManualScheduler.js.map +1 -1
- package/dist/testkit/MockCluster.d.ts +74 -0
- package/dist/testkit/MockCluster.d.ts.map +1 -0
- package/dist/testkit/MockCluster.js +163 -0
- package/dist/testkit/MockCluster.js.map +1 -0
- package/dist/testkit/MultiNodeClusterFixture.d.ts +62 -0
- package/dist/testkit/MultiNodeClusterFixture.d.ts.map +1 -0
- package/dist/testkit/MultiNodeClusterFixture.js +43 -0
- package/dist/testkit/MultiNodeClusterFixture.js.map +1 -0
- package/dist/testkit/MultiNodeSpec.d.ts +45 -3
- package/dist/testkit/MultiNodeSpec.d.ts.map +1 -1
- package/dist/testkit/MultiNodeSpec.js +108 -14
- package/dist/testkit/MultiNodeSpec.js.map +1 -1
- package/dist/testkit/ParallelMultiNodeSpec.d.ts +12 -2
- package/dist/testkit/ParallelMultiNodeSpec.d.ts.map +1 -1
- package/dist/testkit/ParallelMultiNodeSpec.js +49 -4
- package/dist/testkit/ParallelMultiNodeSpec.js.map +1 -1
- package/dist/testkit/SnapshotMigrationTest.d.ts +86 -0
- package/dist/testkit/SnapshotMigrationTest.d.ts.map +1 -0
- package/dist/testkit/SnapshotMigrationTest.js +77 -0
- package/dist/testkit/SnapshotMigrationTest.js.map +1 -0
- package/dist/testkit/TestKit.d.ts +6 -8
- package/dist/testkit/TestKit.d.ts.map +1 -1
- package/dist/testkit/TestKit.js +10 -6
- package/dist/testkit/TestKit.js.map +1 -1
- package/dist/testkit/TestKitOptions.d.ts +26 -0
- package/dist/testkit/TestKitOptions.d.ts.map +1 -0
- package/dist/testkit/TestKitOptions.js +19 -0
- package/dist/testkit/TestKitOptions.js.map +1 -0
- package/dist/testkit/TestProbe.d.ts +2 -7
- package/dist/testkit/TestProbe.d.ts.map +1 -1
- package/dist/testkit/TestProbe.js +2 -1
- package/dist/testkit/TestProbe.js.map +1 -1
- package/dist/testkit/TestProbeOptions.d.ts +26 -0
- package/dist/testkit/TestProbeOptions.d.ts.map +1 -0
- package/dist/testkit/TestProbeOptions.js +19 -0
- package/dist/testkit/TestProbeOptions.js.map +1 -0
- package/dist/testkit/index.d.ts +10 -2
- package/dist/testkit/index.d.ts.map +1 -1
- package/dist/testkit/index.js +5 -0
- package/dist/testkit/index.js.map +1 -1
- package/dist/testkit/internal/parallel-multi-node-bootstrap.d.ts.map +1 -1
- package/dist/testkit/internal/parallel-multi-node-bootstrap.js +16 -12
- package/dist/testkit/internal/parallel-multi-node-bootstrap.js.map +1 -1
- package/dist/tracing/OtelAdapter.d.ts +4 -12
- package/dist/tracing/OtelAdapter.d.ts.map +1 -1
- package/dist/tracing/OtelAdapter.js +4 -2
- package/dist/tracing/OtelAdapter.js.map +1 -1
- package/dist/tracing/OtelAdapterOptions.d.ts +42 -0
- package/dist/tracing/OtelAdapterOptions.d.ts.map +1 -0
- package/dist/tracing/OtelAdapterOptions.js +34 -0
- package/dist/tracing/OtelAdapterOptions.js.map +1 -0
- package/dist/tracing/OtelLogsAdapter.d.ts +100 -0
- package/dist/tracing/OtelLogsAdapter.d.ts.map +1 -0
- package/dist/tracing/OtelLogsAdapter.js +130 -0
- package/dist/tracing/OtelLogsAdapter.js.map +1 -0
- package/dist/tracing/index.d.ts +5 -1
- package/dist/tracing/index.d.ts.map +1 -1
- package/dist/tracing/index.js +2 -0
- package/dist/tracing/index.js.map +1 -1
- package/dist/util/Constants.d.ts +23 -0
- package/dist/util/Constants.d.ts.map +1 -1
- package/dist/util/Constants.js +23 -0
- package/dist/util/Constants.js.map +1 -1
- package/dist/util/Lazy.d.ts +31 -0
- package/dist/util/Lazy.d.ts.map +1 -1
- package/dist/util/Lazy.js +70 -0
- package/dist/util/Lazy.js.map +1 -1
- package/dist/util/OptionsBuilder.d.ts +48 -0
- package/dist/util/OptionsBuilder.d.ts.map +1 -0
- package/dist/util/OptionsBuilder.js +53 -0
- package/dist/util/OptionsBuilder.js.map +1 -0
- package/dist/worker/WorkerCluster.d.ts +2 -11
- package/dist/worker/WorkerCluster.d.ts.map +1 -1
- package/dist/worker/WorkerCluster.js +2 -1
- package/dist/worker/WorkerCluster.js.map +1 -1
- package/dist/worker/WorkerClusterOptions.d.ts +55 -0
- package/dist/worker/WorkerClusterOptions.d.ts.map +1 -0
- package/dist/worker/WorkerClusterOptions.js +55 -0
- package/dist/worker/WorkerClusterOptions.js.map +1 -0
- package/dist/worker/index.d.ts +3 -1
- package/dist/worker/index.d.ts.map +1 -1
- package/dist/worker/index.js +1 -0
- package/dist/worker/index.js.map +1 -1
- package/package.json +56 -13
- package/dist/io/broker/ServerWebSocketActor.d.ts +0 -109
- package/dist/io/broker/ServerWebSocketActor.d.ts.map +0 -1
- package/dist/io/broker/ServerWebSocketActor.js +0 -128
- package/dist/io/broker/ServerWebSocketActor.js.map +0 -1
- package/dist/io/broker/WebSocketActor.d.ts +0 -77
- package/dist/io/broker/WebSocketActor.d.ts.map +0 -1
- package/dist/io/broker/WebSocketActor.js +0 -217
- package/dist/io/broker/WebSocketActor.js.map +0 -1
- package/dist/io/broker/WebSocketServerAdapters.d.ts +0 -140
- package/dist/io/broker/WebSocketServerAdapters.d.ts.map +0 -1
- package/dist/io/broker/WebSocketServerAdapters.js +0 -155
- package/dist/io/broker/WebSocketServerAdapters.js.map +0 -1
package/dist/cluster/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { Cluster, inMemoryTransport } from './Cluster.js';
|
|
2
|
-
export
|
|
2
|
+
export { ClusterOptions, ClusterOptionsBuilder } from './ClusterOptions.js';
|
|
3
|
+
export type { ClusterOptionsType } from './ClusterOptions.js';
|
|
3
4
|
export { bootstrapCluster } from './ClusterBootstrap.js';
|
|
4
|
-
export
|
|
5
|
+
export { ClusterBootstrapOptions, ClusterBootstrapOptionsBuilder } from './ClusterBootstrapOptions.js';
|
|
6
|
+
export type { ClusterBootstrapOptionsType } from './ClusterBootstrapOptions.js';
|
|
7
|
+
export type { BootstrappedCluster } from './ClusterBootstrap.js';
|
|
5
8
|
export { NodeAddress } from './NodeAddress.js';
|
|
6
9
|
export type { NodeAddressData } from './NodeAddress.js';
|
|
7
10
|
export { Member } from './Member.js';
|
|
@@ -14,36 +17,48 @@ export type { Transport, WireHandler, TlsTransportSettings } from './Transport.j
|
|
|
14
17
|
export { MessageChannelTransport } from './transports/MessageChannelTransport.js';
|
|
15
18
|
export type { PortLike, BrokeredMessage } from './transports/MessageChannelTransport.js';
|
|
16
19
|
export { FailureDetector, defaultFailureDetectorSettings, } from './FailureDetector.js';
|
|
17
|
-
export
|
|
20
|
+
export { FailureDetectorOptions, FailureDetectorOptionsBuilder } from './FailureDetectorOptions.js';
|
|
21
|
+
export type { FailureDetectorOptionsType } from './FailureDetectorOptions.js';
|
|
22
|
+
export type { FailureDecision } from './FailureDetector.js';
|
|
18
23
|
export { PhiAccrualFailureDetector, defaultPhiAccrualSettings, } from './PhiAccrualFailureDetector.js';
|
|
19
|
-
export
|
|
20
|
-
export {
|
|
21
|
-
export
|
|
22
|
-
export {
|
|
23
|
-
export
|
|
24
|
-
export {
|
|
25
|
-
export
|
|
24
|
+
export { PhiAccrualOptions, PhiAccrualOptionsBuilder } from './PhiAccrualOptions.js';
|
|
25
|
+
export type { PhiAccrualOptionsType } from './PhiAccrualOptions.js';
|
|
26
|
+
export { KeepMajority, KeepOldest, KeepOldestOptions, KeepOldestOptionsBuilder, StaticQuorum, StaticQuorumOptions, StaticQuorumOptionsBuilder, KeepReferee, KeepRefereeOptions, KeepRefereeOptionsBuilder, } from './downing/index.js';
|
|
27
|
+
export type { DowningProvider, DowningDecision, ClusterPartitionView, KeepMajoritySettings, KeepOldestOptionsType, StaticQuorumOptionsType, KeepRefereeOptionsType, } from './downing/index.js';
|
|
28
|
+
export { ClusterSingleton, ClusterSingletonId, ClusterSingletonManager, ClusterSingletonProxy, ClusterSingletonManagerOptions, ClusterSingletonManagerOptionsBuilder, StartSingletonOptions, StartSingletonOptionsBuilder, singletonManagerPath, } from './singleton/index.js';
|
|
29
|
+
export type { StartSingletonOptionsType, SingletonHandle, ClusterSingletonManagerOptionsType, SingletonDeliver, } from './singleton/index.js';
|
|
30
|
+
export { DistributedPubSub, DistributedPubSubId, DistributedPubSubMediator, DistributedPubSubOptions, DistributedPubSubOptionsBuilder, mediatorPath, CurrentTopics, GetTopics, Publish, Subscribe, SubscribeAck, Unsubscribe, UnsubscribeAck, UnsubscribeAll, } from './pubsub/index.js';
|
|
31
|
+
export type { DistributedPubSubOptionsType } from './pubsub/index.js';
|
|
26
32
|
export { ClusterSharding } from './sharding/ClusterSharding.js';
|
|
27
|
-
export
|
|
33
|
+
export { StartShardingOptions, StartShardingOptionsBuilder } from './sharding/StartShardingOptions.js';
|
|
34
|
+
export type { StartShardingOptionsType } from './sharding/StartShardingOptions.js';
|
|
28
35
|
export { ShardedDaemonProcess } from './sharding/ShardedDaemonProcess.js';
|
|
29
|
-
export
|
|
36
|
+
export { ShardedDaemonProcessOptions, ShardedDaemonProcessOptionsBuilder } from './sharding/ShardedDaemonProcessOptions.js';
|
|
37
|
+
export type { ShardedDaemonProcessOptionsType } from './sharding/ShardedDaemonProcessOptions.js';
|
|
38
|
+
export type { ShardedDaemonProcessHandle } from './sharding/ShardedDaemonProcess.js';
|
|
30
39
|
export { ShardRegion } from './sharding/ShardRegion.js';
|
|
31
|
-
export
|
|
40
|
+
export { ShardingOptions, ShardingOptionsBuilder } from './sharding/ShardingOptions.js';
|
|
41
|
+
export type { ShardingOptionsType } from './sharding/ShardingOptions.js';
|
|
32
42
|
export { ShardCoordinator } from './sharding/ShardCoordinator.js';
|
|
33
|
-
export
|
|
43
|
+
export { ShardCoordinatorOptions, ShardCoordinatorOptionsBuilder } from './sharding/ShardCoordinatorOptions.js';
|
|
44
|
+
export type { ShardCoordinatorOptionsType } from './sharding/ShardCoordinatorOptions.js';
|
|
34
45
|
export { Passivate } from './sharding/Passivate.js';
|
|
35
46
|
export { JournalRememberEntitiesStore, } from './sharding/RememberEntitiesStore.js';
|
|
36
47
|
export type { RememberEntitiesStore, RememberEvent, } from './sharding/RememberEntitiesStore.js';
|
|
37
48
|
export { CassandraRememberEntitiesStore, rememberEntitiesDdl, } from './sharding/CassandraRememberEntitiesStore.js';
|
|
38
|
-
export
|
|
49
|
+
export { CassandraRememberEntitiesStoreOptions, CassandraRememberEntitiesStoreOptionsBuilder } from './sharding/CassandraRememberEntitiesStoreOptions.js';
|
|
50
|
+
export type { CassandraRememberEntitiesStoreOptionsType, } from './sharding/CassandraRememberEntitiesStoreOptions.js';
|
|
39
51
|
export { HashAllocationStrategy, LeastShardAllocationStrategy, } from './sharding/AllocationStrategy.js';
|
|
40
52
|
export type { AllocationStrategy } from './sharding/AllocationStrategy.js';
|
|
41
53
|
export { moduloAllocator, rendezvousAllocator, hashShardId, } from './sharding/ShardAllocator.js';
|
|
42
54
|
export type { ShardAllocator } from './sharding/ShardAllocator.js';
|
|
43
|
-
export { ClusterRouter, pickRendezvous } from './router/index.js';
|
|
44
|
-
export type {
|
|
55
|
+
export { ClusterRouter, pickRendezvous, ClusterRouterOptions, ClusterRouterOptionsBuilder } from './router/index.js';
|
|
56
|
+
export type { ClusterRouterOptionsType, ClusterRouterType, } from './router/index.js';
|
|
45
57
|
export { ClusterClient } from './ClusterClient.js';
|
|
46
|
-
export
|
|
58
|
+
export { ClusterClientOptions, ClusterClientOptionsBuilder } from './ClusterClientOptions.js';
|
|
59
|
+
export type { ClusterClientOptionsType } from './ClusterClientOptions.js';
|
|
47
60
|
export { ClusterClientReceptionist, ClusterClientReceptionistId, } from './ClusterClientReceptionist.js';
|
|
48
|
-
export
|
|
61
|
+
export { ClusterClientReceptionistOptions, ClusterClientReceptionistOptionsBuilder } from './ClusterClientReceptionistOptions.js';
|
|
62
|
+
export type { ClusterClientReceptionistOptionsType } from './ClusterClientReceptionistOptions.js';
|
|
63
|
+
export type { ClusterClientEnvelopeMsg, ClusterClientReplyMsg, } from './ClusterClientReceptionist.js';
|
|
49
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC1D,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC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E,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACrH,YAAY,EACV,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAC9F,YAAY,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gCAAgC,EAAE,uCAAuC,EAAE,MAAM,uCAAuC,CAAC;AAClI,YAAY,EAAE,oCAAoC,EAAE,MAAM,uCAAuC,CAAC;AAClG,YAAY,EACV,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,gCAAgC,CAAC"}
|
package/dist/cluster/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Cluster entry points.
|
|
2
2
|
export { Cluster, inMemoryTransport } from './Cluster.js';
|
|
3
|
+
export { ClusterOptions, ClusterOptionsBuilder } from './ClusterOptions.js';
|
|
3
4
|
export { bootstrapCluster } from './ClusterBootstrap.js';
|
|
5
|
+
export { ClusterBootstrapOptions, ClusterBootstrapOptionsBuilder } from './ClusterBootstrapOptions.js';
|
|
4
6
|
export { NodeAddress } from './NodeAddress.js';
|
|
5
7
|
export { Member } from './Member.js';
|
|
6
8
|
export { SelfUp, SelfRemoved, LeaderChanged, MemberJoined, MemberUp, MemberWeaklyUp, MemberUnreachable, MemberReachable, MemberDown, MemberLeft, MemberRemoved, ShardMapChanged, } from './ClusterEvents.js';
|
|
@@ -8,26 +10,35 @@ export { RemoteActorRef } from './RemoteActorRef.js';
|
|
|
8
10
|
export { InMemoryTransport, TcpTransport } from './Transport.js';
|
|
9
11
|
export { MessageChannelTransport } from './transports/MessageChannelTransport.js';
|
|
10
12
|
export { FailureDetector, defaultFailureDetectorSettings, } from './FailureDetector.js';
|
|
13
|
+
export { FailureDetectorOptions, FailureDetectorOptionsBuilder } from './FailureDetectorOptions.js';
|
|
11
14
|
export { PhiAccrualFailureDetector, defaultPhiAccrualSettings, } from './PhiAccrualFailureDetector.js';
|
|
15
|
+
export { PhiAccrualOptions, PhiAccrualOptionsBuilder } from './PhiAccrualOptions.js';
|
|
12
16
|
// Split-Brain Resolver strategies.
|
|
13
|
-
export { KeepMajority, KeepOldest, StaticQuorum, KeepReferee, } from './downing/index.js';
|
|
17
|
+
export { KeepMajority, KeepOldest, KeepOldestOptions, KeepOldestOptionsBuilder, StaticQuorum, StaticQuorumOptions, StaticQuorumOptionsBuilder, KeepReferee, KeepRefereeOptions, KeepRefereeOptionsBuilder, } from './downing/index.js';
|
|
14
18
|
// Cluster Singleton.
|
|
15
|
-
export { ClusterSingleton, ClusterSingletonId, ClusterSingletonManager, ClusterSingletonProxy, singletonManagerPath, } from './singleton/index.js';
|
|
19
|
+
export { ClusterSingleton, ClusterSingletonId, ClusterSingletonManager, ClusterSingletonProxy, ClusterSingletonManagerOptions, ClusterSingletonManagerOptionsBuilder, StartSingletonOptions, StartSingletonOptionsBuilder, singletonManagerPath, } from './singleton/index.js';
|
|
16
20
|
// Distributed Pub-Sub.
|
|
17
|
-
export { DistributedPubSub, DistributedPubSubId, DistributedPubSubMediator, mediatorPath, CurrentTopics, GetTopics, Publish, Subscribe, SubscribeAck, Unsubscribe, UnsubscribeAck, UnsubscribeAll, } from './pubsub/index.js';
|
|
21
|
+
export { DistributedPubSub, DistributedPubSubId, DistributedPubSubMediator, DistributedPubSubOptions, DistributedPubSubOptionsBuilder, mediatorPath, CurrentTopics, GetTopics, Publish, Subscribe, SubscribeAck, Unsubscribe, UnsubscribeAck, UnsubscribeAll, } from './pubsub/index.js';
|
|
18
22
|
// Sharding.
|
|
19
23
|
export { ClusterSharding } from './sharding/ClusterSharding.js';
|
|
24
|
+
export { StartShardingOptions, StartShardingOptionsBuilder } from './sharding/StartShardingOptions.js';
|
|
20
25
|
export { ShardedDaemonProcess } from './sharding/ShardedDaemonProcess.js';
|
|
26
|
+
export { ShardedDaemonProcessOptions, ShardedDaemonProcessOptionsBuilder } from './sharding/ShardedDaemonProcessOptions.js';
|
|
21
27
|
export { ShardRegion } from './sharding/ShardRegion.js';
|
|
28
|
+
export { ShardingOptions, ShardingOptionsBuilder } from './sharding/ShardingOptions.js';
|
|
22
29
|
export { ShardCoordinator } from './sharding/ShardCoordinator.js';
|
|
30
|
+
export { ShardCoordinatorOptions, ShardCoordinatorOptionsBuilder } from './sharding/ShardCoordinatorOptions.js';
|
|
23
31
|
export { Passivate } from './sharding/Passivate.js';
|
|
24
32
|
export { JournalRememberEntitiesStore, } from './sharding/RememberEntitiesStore.js';
|
|
25
33
|
export { CassandraRememberEntitiesStore, rememberEntitiesDdl, } from './sharding/CassandraRememberEntitiesStore.js';
|
|
34
|
+
export { CassandraRememberEntitiesStoreOptions, CassandraRememberEntitiesStoreOptionsBuilder } from './sharding/CassandraRememberEntitiesStoreOptions.js';
|
|
26
35
|
export { HashAllocationStrategy, LeastShardAllocationStrategy, } from './sharding/AllocationStrategy.js';
|
|
27
36
|
export { moduloAllocator, rendezvousAllocator, hashShardId, } from './sharding/ShardAllocator.js';
|
|
28
37
|
// Cluster-aware routing.
|
|
29
|
-
export { ClusterRouter, pickRendezvous } from './router/index.js';
|
|
38
|
+
export { ClusterRouter, pickRendezvous, ClusterRouterOptions, ClusterRouterOptionsBuilder } from './router/index.js';
|
|
30
39
|
// Outside-in client (#86).
|
|
31
40
|
export { ClusterClient } from './ClusterClient.js';
|
|
41
|
+
export { ClusterClientOptions, ClusterClientOptionsBuilder } from './ClusterClientOptions.js';
|
|
32
42
|
export { ClusterClientReceptionist, ClusterClientReceptionistId, } from './ClusterClientReceptionist.js';
|
|
43
|
+
export { ClusterClientReceptionistOptions, ClusterClientReceptionistOptionsBuilder } from './ClusterClientReceptionistOptions.js';
|
|
33
44
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAIvG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,UAAU,EACV,aAAa,EACb,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAGlF,OAAO,EACL,eAAe,EACf,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAGpG,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AA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mB,GACpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,qCAAqC,EAAE,4CAA4C,EAAE,MAAM,qDAAqD,CAAC;AAI1J,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,WAAW,GACZ,MAAM,8BAA8B,CAAC;AAGtC,yBAAyB;AACzB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAMrH,2BAA2B;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAE9F,OAAO,EACL,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gCAAgC,EAAE,uCAAuC,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { ActorRef } from '../../ActorRef.js';
|
|
|
2
2
|
import type { ActorSystem } from '../../ActorSystem.js';
|
|
3
3
|
import { type Extension, type ExtensionId } from '../../Extension.js';
|
|
4
4
|
import type { Cluster } from '../Cluster.js';
|
|
5
|
-
import {
|
|
5
|
+
import { DistributedPubSubOptions } from './DistributedPubSubOptions.js';
|
|
6
6
|
import type { GetTopics, Publish, Subscribe, Unsubscribe, UnsubscribeAll } from './Messages.js';
|
|
7
7
|
type MediatorMessage = Subscribe | Unsubscribe | UnsubscribeAll | Publish | GetTopics;
|
|
8
8
|
/**
|
|
@@ -20,7 +20,7 @@ export declare class DistributedPubSub implements Extension {
|
|
|
20
20
|
* re-binding to the same cluster is a no-op; re-binding to a different
|
|
21
21
|
* cluster throws.
|
|
22
22
|
*/
|
|
23
|
-
start(cluster: Cluster,
|
|
23
|
+
start(cluster: Cluster, options?: DistributedPubSubOptions): ActorRef<MediatorMessage>;
|
|
24
24
|
/** The ref of the mediator — throws if `start()` hasn't been called. */
|
|
25
25
|
get mediator(): ActorRef<MediatorMessage>;
|
|
26
26
|
isStarted(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributedPubSubExtension.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubExtension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"DistributedPubSubExtension.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubExtension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAM7C,OAAO,EAAE,wBAAwB,EAAqC,MAAM,+BAA+B,CAAC;AAC5G,OAAO,KAAK,EACV,SAAS,EACT,OAAO,EACP,SAAS,EACT,WAAW,EACX,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB,KAAK,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtF;;;;GAIG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IAIrC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAHnC,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,QAAQ,CAAwB;gBAEX,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACH,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,wBAA4D,GAAG,QAAQ,CAAC,eAAe,CAAC;IAsBzH,wEAAwE;IACxE,IAAI,QAAQ,IAAI,QAAQ,CAAC,eAAe,CAAC,CAGxC;IAED,SAAS,IAAI,OAAO;CACrB;AAED,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,iBAAiB,CAG9D,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { extensionId } from '../../Extension.js';
|
|
2
2
|
import { Props } from '../../Props.js';
|
|
3
3
|
import { DistributedPubSubMediator, mediatorPath, } from './DistributedPubSubMediator.js';
|
|
4
|
+
import { DistributedPubSubOptions } from './DistributedPubSubOptions.js';
|
|
4
5
|
/**
|
|
5
6
|
* System-wide access to the DistributedPubSubMediator for a given Cluster.
|
|
6
7
|
* Call `DistributedPubSub.get(system, cluster).mediator` to grab a ref
|
|
@@ -18,13 +19,15 @@ export class DistributedPubSub {
|
|
|
18
19
|
* re-binding to the same cluster is a no-op; re-binding to a different
|
|
19
20
|
* cluster throws.
|
|
20
21
|
*/
|
|
21
|
-
start(cluster,
|
|
22
|
+
start(cluster, options = DistributedPubSubOptions.create()) {
|
|
22
23
|
if (this._mediator && this._cluster === cluster)
|
|
23
24
|
return this._mediator;
|
|
24
25
|
if (this._mediator)
|
|
25
26
|
throw new Error('DistributedPubSub is already bound to a different cluster');
|
|
26
27
|
this._cluster = cluster;
|
|
27
|
-
|
|
28
|
+
// Cluster comes from the positional arg and is authoritative — inject it
|
|
29
|
+
// into the options (builder or plain object) before constructing the mediator.
|
|
30
|
+
const mediator = this.system.spawn(Props.create(() => new DistributedPubSubMediator({ ...options, cluster })), 'pubsub-mediator');
|
|
28
31
|
this._mediator = mediator;
|
|
29
32
|
// Route inbound publishes (remote → local) to the mediator's mailbox.
|
|
30
33
|
cluster._registerEnvelopeHandler(mediatorPath(cluster.system.name), (env) => mediator.tell(env.body));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributedPubSubExtension.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubExtension.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoC,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EACL,yBAAyB,EACzB,YAAY,
|
|
1
|
+
{"version":3,"file":"DistributedPubSubExtension.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubExtension.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoC,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EACL,yBAAyB,EACzB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAqC,MAAM,+BAA+B,CAAC;AAW5G;;;;GAIG;AACH,MAAM,OAAO,iBAAiB;IAIC;IAHrB,SAAS,GAAqC,IAAI,CAAC;IACnD,QAAQ,GAAmB,IAAI,CAAC;IAExC,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;OAIG;IACH,KAAK,CAAC,OAAgB,EAAE,UAAoC,wBAAwB,CAAC,MAAM,EAAE;QAC3F,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC;QACvE,IAAI,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACjG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,yEAAyE;QACzE,+EAA+E;QAC/E,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAChC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,yBAAyB,CAAC,EAAE,GAAI,OAAiD,EAAE,OAAO,EAAE,CAAC,CAAC,EACrH,iBAAiB,CAClB,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,QAAqC,CAAC;QAEvD,sEAAsE;QACtE,OAAO,CAAC,wBAAwB,CAC9B,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EACjC,CAAC,GAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAa,CAAC,CACvD,CAAC;QAEF,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,wEAAwE;IACxE,IAAI,QAAQ;QACV,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QAC9F,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,SAAS,KAAc,OAAO,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAmC,WAAW,CAC5E,mBAAmB,EACnB,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAC1C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Actor } from '../../Actor.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DistributedPubSubOptions, DistributedPubSubOptionsType } from './DistributedPubSubOptions.js';
|
|
3
3
|
import { GetTopics, Publish, Subscribe, type PubSubPublishMsg, Unsubscribe, UnsubscribeAll } from './Messages.js';
|
|
4
4
|
/**
|
|
5
5
|
* Well-known path at which every node hosts its DistributedPubSubMediator.
|
|
@@ -7,10 +7,6 @@ import { GetTopics, Publish, Subscribe, type PubSubPublishMsg, Unsubscribe, Unsu
|
|
|
7
7
|
* to its local subscribers.
|
|
8
8
|
*/
|
|
9
9
|
export declare function mediatorPath(systemName: string): string;
|
|
10
|
-
export interface DistributedPubSubSettings {
|
|
11
|
-
readonly cluster: Cluster;
|
|
12
|
-
readonly gossipIntervalMs?: number;
|
|
13
|
-
}
|
|
14
10
|
/**
|
|
15
11
|
* Cluster-wide publish/subscribe bus. Every node hosts one mediator
|
|
16
12
|
* which keeps a local Map<topic, subscribers> and gossip-replicates
|
|
@@ -21,13 +17,13 @@ export interface DistributedPubSubSettings {
|
|
|
21
17
|
* topic set to one random peer. Peers merge into their view.
|
|
22
18
|
*/
|
|
23
19
|
export declare class DistributedPubSubMediator extends Actor<Subscribe | Unsubscribe | UnsubscribeAll | Publish | GetTopics | PubSubPublishMsg> {
|
|
24
|
-
readonly settings: DistributedPubSubSettings;
|
|
25
20
|
private readonly topics;
|
|
26
21
|
private gossipTimer;
|
|
27
22
|
private unsubscribeWire;
|
|
28
23
|
private unsubscribeCluster;
|
|
29
24
|
private version;
|
|
30
|
-
|
|
25
|
+
readonly settings: DistributedPubSubOptionsType;
|
|
26
|
+
constructor(options: DistributedPubSubOptions);
|
|
31
27
|
preStart(): void;
|
|
32
28
|
postStop(): void;
|
|
33
29
|
onReceive(msg: Subscribe | Unsubscribe | UnsubscribeAll | Publish | GetTopics | PubSubPublishMsg): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributedPubSubMediator.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubMediator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DistributedPubSubMediator.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubMediator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAK5G,OAAO,EAEL,SAAS,EACT,OAAO,EACP,SAAS,EAGT,KAAK,gBAAgB,EAErB,WAAW,EAEX,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEvD;AASD;;;;;;;;GAQG;AACH,qBAAa,yBAA0B,SAAQ,KAAK,CAClD,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,gBAAgB,CAClF;IACC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAC3D,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,eAAe,CAA6B;IACpD,OAAO,CAAC,kBAAkB,CAA6B;IACvD,OAAO,CAAC,OAAO,CAAK;IAEpB,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;gBAEpC,OAAO,EAAE,wBAAwB;IAKpC,QAAQ,IAAI,IAAI;IAkBhB,QAAQ,IAAI,IAAI;IAMhB,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,gBAAgB,GAAG,IAAI;IAchH,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,UAAU;IAUlB;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,QAAQ;CAgBjB"}
|
|
@@ -22,15 +22,15 @@ export function mediatorPath(systemName) {
|
|
|
22
22
|
* topic set to one random peer. Peers merge into their view.
|
|
23
23
|
*/
|
|
24
24
|
export class DistributedPubSubMediator extends Actor {
|
|
25
|
-
settings;
|
|
26
25
|
topics = new Map();
|
|
27
26
|
gossipTimer = null;
|
|
28
27
|
unsubscribeWire = null;
|
|
29
28
|
unsubscribeCluster = null;
|
|
30
29
|
version = 0;
|
|
31
|
-
|
|
30
|
+
settings;
|
|
31
|
+
constructor(options) {
|
|
32
32
|
super();
|
|
33
|
-
this.settings =
|
|
33
|
+
this.settings = options;
|
|
34
34
|
}
|
|
35
35
|
preStart() {
|
|
36
36
|
const cluster = this.settings.cluster;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributedPubSubMediator.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubMediator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EAIZ,WAAW,EACX,cAAc,EACd,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,UAAkB;IAC7C,OAAO,cAAc,UAAU,uBAAuB,CAAC;AACzD,CAAC;
|
|
1
|
+
{"version":3,"file":"DistributedPubSubMediator.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubMediator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AA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AAC;QAC5B,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IAEO,QAAQ,CAAC,EAAe,EAAE,GAAsB;QACtD,IAAI,GAAG,CAAC,CAAC,KAAK,gBAAgB,EAAE,CAAC;YAC/B,gEAAgE;YAChE,oEAAoE;YACpE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE;gBACtC,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;gBACnD,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,eAAe;aACrB,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,oEAAoE;YACpE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAA6B,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OptionsBuilder } from '../../util/OptionsBuilder.js';
|
|
2
|
+
import type { Cluster } from '../Cluster.js';
|
|
3
|
+
/** Plain settings-object shape consumed by a {@link DistributedPubSubMediator}. */
|
|
4
|
+
export interface DistributedPubSubOptionsType {
|
|
5
|
+
readonly cluster: Cluster;
|
|
6
|
+
readonly gossipIntervalMs?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Fluent builder for {@link DistributedPubSubOptionsType}. The mediator is
|
|
10
|
+
* normally spawned by the {@link DistributedPubSub} extension, which
|
|
11
|
+
* injects the cluster and forwards the operator's gossip-interval choice.
|
|
12
|
+
*/
|
|
13
|
+
export declare class DistributedPubSubOptionsBuilder extends OptionsBuilder<DistributedPubSubOptionsType> {
|
|
14
|
+
/** Start a fresh builder. */
|
|
15
|
+
static create(): DistributedPubSubOptionsBuilder;
|
|
16
|
+
/** The cluster this mediator lives in — drives membership + gossip peers. */
|
|
17
|
+
withCluster(cluster: Cluster): this;
|
|
18
|
+
/** Gossip interval in ms between anti-entropy pushes. Default gossip interval. */
|
|
19
|
+
withGossipIntervalMs(ms: number): this;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Accepted input for a {@link DistributedPubSubMediator}: the fluent
|
|
23
|
+
* {@link DistributedPubSubOptionsBuilder} OR a plain (partial)
|
|
24
|
+
* {@link DistributedPubSubOptionsType} object.
|
|
25
|
+
*/
|
|
26
|
+
export type DistributedPubSubOptions = DistributedPubSubOptionsBuilder | Partial<DistributedPubSubOptionsType>;
|
|
27
|
+
/** Value alias so `DistributedPubSubOptions.create()` resolves to the builder. */
|
|
28
|
+
export declare const DistributedPubSubOptions: typeof DistributedPubSubOptionsBuilder;
|
|
29
|
+
//# sourceMappingURL=DistributedPubSubOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DistributedPubSubOptions.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,mFAAmF;AACnF,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;;;GAIG;AACH,qBAAa,+BAAgC,SAAQ,cAAc,CAAC,4BAA4B,CAAC;IAC/F,6BAA6B;IAC7B,MAAM,CAAC,MAAM,IAAI,+BAA+B;IAIhD,6EAA6E;IAC7E,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAInC,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAGvC;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC/G,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,wCAAkC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OptionsBuilder } from '../../util/OptionsBuilder.js';
|
|
2
|
+
/**
|
|
3
|
+
* Fluent builder for {@link DistributedPubSubOptionsType}. The mediator is
|
|
4
|
+
* normally spawned by the {@link DistributedPubSub} extension, which
|
|
5
|
+
* injects the cluster and forwards the operator's gossip-interval choice.
|
|
6
|
+
*/
|
|
7
|
+
export class DistributedPubSubOptionsBuilder extends OptionsBuilder {
|
|
8
|
+
/** Start a fresh builder. */
|
|
9
|
+
static create() {
|
|
10
|
+
return new DistributedPubSubOptionsBuilder();
|
|
11
|
+
}
|
|
12
|
+
/** The cluster this mediator lives in — drives membership + gossip peers. */
|
|
13
|
+
withCluster(cluster) {
|
|
14
|
+
return this.set('cluster', cluster);
|
|
15
|
+
}
|
|
16
|
+
/** Gossip interval in ms between anti-entropy pushes. Default gossip interval. */
|
|
17
|
+
withGossipIntervalMs(ms) {
|
|
18
|
+
return this.set('gossipIntervalMs', ms);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/** Value alias so `DistributedPubSubOptions.create()` resolves to the builder. */
|
|
22
|
+
export const DistributedPubSubOptions = DistributedPubSubOptionsBuilder;
|
|
23
|
+
//# sourceMappingURL=DistributedPubSubOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DistributedPubSubOptions.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/DistributedPubSubOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAS9D;;;;GAIG;AACH,MAAM,OAAO,+BAAgC,SAAQ,cAA4C;IAC/F,6BAA6B;IAC7B,MAAM,CAAC,MAAM;QACX,OAAO,IAAI,+BAA+B,EAAE,CAAC;IAC/C,CAAC;IAED,6EAA6E;IAC7E,WAAW,CAAC,OAAgB;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,mFAAmF;IACnF,oBAAoB,CAAC,EAAU;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAQD,kFAAkF;AAClF,MAAM,CAAC,MAAM,wBAAwB,GAAG,+BAA+B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DistributedPubSub, DistributedPubSubId, } from './DistributedPubSubExtension.js';
|
|
2
2
|
export { DistributedPubSubMediator, mediatorPath, } from './DistributedPubSubMediator.js';
|
|
3
|
-
export
|
|
3
|
+
export { DistributedPubSubOptions, DistributedPubSubOptionsBuilder } from './DistributedPubSubOptions.js';
|
|
4
|
+
export type { DistributedPubSubOptionsType } from './DistributedPubSubOptions.js';
|
|
4
5
|
export { CurrentTopics, GetTopics, Publish, Subscribe, SubscribeAck, Unsubscribe, UnsubscribeAck, UnsubscribeAll, } from './Messages.js';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EACzB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cluster/pubsub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EACzB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAC1G,YAAY,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,GACf,MAAM,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { DistributedPubSub, DistributedPubSubId, } from './DistributedPubSubExtension.js';
|
|
2
2
|
export { DistributedPubSubMediator, mediatorPath, } from './DistributedPubSubMediator.js';
|
|
3
|
+
export { DistributedPubSubOptions, DistributedPubSubOptionsBuilder } from './DistributedPubSubOptions.js';
|
|
3
4
|
export { CurrentTopics, GetTopics, Publish, Subscribe, SubscribeAck, Unsubscribe, UnsubscribeAck, UnsubscribeAll, } from './Messages.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EACzB,YAAY,GACb,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cluster/pubsub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EACzB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAE1G,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,GACf,MAAM,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Props } from '../../Props.js';
|
|
2
2
|
import { Broadcast } from '../../Router.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ClusterRouterOptions } from './ClusterRouterOptions.js';
|
|
4
4
|
/**
|
|
5
5
|
* Cluster-aware router — routees are derived dynamically from the
|
|
6
6
|
* cluster's up-members (optionally filtered by role) and rebuilt
|
|
@@ -10,13 +10,14 @@ import type { Cluster } from '../Cluster.js';
|
|
|
10
10
|
* extracted key to the same node.
|
|
11
11
|
*
|
|
12
12
|
* const router = system.spawn(
|
|
13
|
-
* ClusterRouter.props(
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
13
|
+
* ClusterRouter.props(
|
|
14
|
+
* ClusterRouterOptions.create<{ id: string }>()
|
|
15
|
+
* .withCluster(cluster)
|
|
16
|
+
* .withRole('compute') // optional role filter
|
|
17
|
+
* .withRouterType('consistent-hashing')
|
|
18
|
+
* .withRouteePath('/user/worker')
|
|
19
|
+
* .withExtractKey((msg) => msg.id),
|
|
20
|
+
* ),
|
|
20
21
|
* 'compute-router',
|
|
21
22
|
* );
|
|
22
23
|
* router.tell({ id: 'order-42', op: 'price' });
|
|
@@ -55,33 +56,12 @@ export type ClusterRouterType =
|
|
|
55
56
|
| 'consistent-hashing'
|
|
56
57
|
/** Every routee gets every message (equivalent to wrapping in `Broadcast`). */
|
|
57
58
|
| 'broadcast';
|
|
58
|
-
export interface ClusterRouterOptions<TMsg> {
|
|
59
|
-
/** The cluster the router lives in. Used for membership + transport. */
|
|
60
|
-
readonly cluster: Cluster;
|
|
61
|
-
/** Restrict routees to up-members carrying this role. Omit for "any node". */
|
|
62
|
-
readonly role?: string;
|
|
63
|
-
/** Strategy. See {@link ClusterRouterType}. */
|
|
64
|
-
readonly routerType: ClusterRouterType;
|
|
65
|
-
/**
|
|
66
|
-
* The path the routee actor lives under on each routee node — usually
|
|
67
|
-
* `/user/<actorName>`. The same path must exist on every targeted
|
|
68
|
-
* node; the router doesn't probe for liveness beyond the cluster
|
|
69
|
-
* membership state.
|
|
70
|
-
*/
|
|
71
|
-
readonly routeePath: string;
|
|
72
|
-
/**
|
|
73
|
-
* Required for `routerType: 'consistent-hashing'`, ignored otherwise.
|
|
74
|
-
* Returns the string key used to pin a message to a routee. Two
|
|
75
|
-
* messages with the same key always land on the same node (subject
|
|
76
|
-
* to the cluster topology not changing).
|
|
77
|
-
*/
|
|
78
|
-
readonly extractKey?: (message: TMsg) => string;
|
|
79
|
-
}
|
|
80
59
|
/**
|
|
81
60
|
* `Props` factory for the cluster router. See {@link ClusterRouterOptions}
|
|
82
|
-
* for the configuration
|
|
61
|
+
* for the configuration builder and {@link ClusterRouterOptionsType} for the
|
|
62
|
+
* resolved shape.
|
|
83
63
|
*/
|
|
84
64
|
export declare const ClusterRouter: {
|
|
85
|
-
props<TMsg>(
|
|
65
|
+
props<TMsg>(options: ClusterRouterOptions<TMsg>): Props<TMsg | Broadcast<TMsg>>;
|
|
86
66
|
};
|
|
87
67
|
//# sourceMappingURL=ClusterRouter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterRouter.d.ts","sourceRoot":"","sources":["../../../src/cluster/router/ClusterRouter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ClusterRouter.d.ts","sourceRoot":"","sources":["../../../src/cluster/router/ClusterRouter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAA4B,MAAM,2BAA2B,CAAC;AAKhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,8DAA8D;AAC9D,MAAM,MAAM,iBAAiB;AAC3B,wDAAwD;AACtD,aAAa;AACf,0DAA0D;GACxD,QAAQ;AACV,6EAA6E;GAC3E,oBAAoB;AACtB,+EAA+E;GAC7E,WAAW,CAAC;AAEhB;;;;GAIG;AACH,eAAO,MAAM,aAAa;UAClB,IAAI,WACC,oBAAoB,CAAC,IAAI,CAAC,GAClC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;CAWjC,CAAC"}
|
|
@@ -6,10 +6,12 @@ import { RemoteActorRef } from '../RemoteActorRef.js';
|
|
|
6
6
|
import { pickRendezvous } from './ConsistentHashing.js';
|
|
7
7
|
/**
|
|
8
8
|
* `Props` factory for the cluster router. See {@link ClusterRouterOptions}
|
|
9
|
-
* for the configuration
|
|
9
|
+
* for the configuration builder and {@link ClusterRouterOptionsType} for the
|
|
10
|
+
* resolved shape.
|
|
10
11
|
*/
|
|
11
12
|
export const ClusterRouter = {
|
|
12
|
-
props(
|
|
13
|
+
props(options) {
|
|
14
|
+
const opts = options;
|
|
13
15
|
if (opts.routerType === 'consistent-hashing' && !opts.extractKey) {
|
|
14
16
|
throw new Error('ClusterRouter: routerType=\'consistent-hashing\' requires extractKey');
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterRouter.js","sourceRoot":"","sources":["../../../src/cluster/router/ClusterRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
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