actor-ts 0.9.1 → 0.11.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 +703 -1
- package/README.md +294 -269
- package/dist/Actor.d.ts +6 -6
- package/dist/Actor.d.ts.map +1 -1
- package/dist/Actor.js.map +1 -1
- package/dist/ActorContext.d.ts +7 -7
- package/dist/ActorContext.d.ts.map +1 -1
- package/dist/ActorPath.js +8 -8
- package/dist/ActorPath.js.map +1 -1
- package/dist/ActorRef.d.ts +6 -6
- package/dist/ActorRef.d.ts.map +1 -1
- package/dist/ActorRef.js.map +1 -1
- package/dist/ActorSystem.d.ts +3 -38
- package/dist/ActorSystem.d.ts.map +1 -1
- package/dist/ActorSystem.js +23 -23
- 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/CoordinatedShutdown.js +3 -3
- package/dist/CoordinatedShutdown.js.map +1 -1
- 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/Props.d.ts +13 -13
- package/dist/Props.d.ts.map +1 -1
- package/dist/Props.js.map +1 -1
- package/dist/Router.d.ts +4 -4
- package/dist/Router.d.ts.map +1 -1
- package/dist/Router.js +4 -4
- package/dist/Router.js.map +1 -1
- package/dist/Supervision.js +3 -3
- package/dist/Supervision.js.map +1 -1
- package/dist/cache/CacheExtension.d.ts +7 -0
- package/dist/cache/CacheExtension.d.ts.map +1 -1
- package/dist/cache/CacheExtension.js +17 -1
- package/dist/cache/CacheExtension.js.map +1 -1
- package/dist/cache/InMemoryCache.d.ts +39 -0
- package/dist/cache/InMemoryCache.d.ts.map +1 -1
- package/dist/cache/InMemoryCache.js +99 -20
- package/dist/cache/InMemoryCache.js.map +1 -1
- package/dist/cache/InMemoryCacheOptions.d.ts +50 -0
- package/dist/cache/InMemoryCacheOptions.d.ts.map +1 -0
- package/dist/cache/InMemoryCacheOptions.js +51 -0
- package/dist/cache/InMemoryCacheOptions.js.map +1 -0
- package/dist/cache/MemcachedCache.d.ts +2 -12
- package/dist/cache/MemcachedCache.d.ts.map +1 -1
- package/dist/cache/MemcachedCache.js +13 -10
- package/dist/cache/MemcachedCache.js.map +1 -1
- package/dist/cache/MemcachedCacheOptions.d.ts +46 -0
- package/dist/cache/MemcachedCacheOptions.d.ts.map +1 -0
- package/dist/cache/MemcachedCacheOptions.js +42 -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 +16 -13
- package/dist/cache/RedisCache.js.map +1 -1
- package/dist/cache/RedisCacheOptions.d.ts +66 -0
- package/dist/cache/RedisCacheOptions.d.ts.map +1 -0
- package/dist/cache/RedisCacheOptions.js +62 -0
- package/dist/cache/RedisCacheOptions.js.map +1 -0
- package/dist/cache/index.d.ts +8 -2
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/cache/index.js +3 -0
- package/dist/cache/index.js.map +1 -1
- package/dist/cluster/Cluster.d.ts +7 -66
- package/dist/cluster/Cluster.d.ts.map +1 -1
- package/dist/cluster/Cluster.js +97 -90
- 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 +37 -23
- package/dist/cluster/ClusterBootstrap.js.map +1 -1
- package/dist/cluster/ClusterBootstrapOptions.d.ts +158 -0
- package/dist/cluster/ClusterBootstrapOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterBootstrapOptions.js +121 -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 +34 -20
- package/dist/cluster/ClusterClient.js.map +1 -1
- package/dist/cluster/ClusterClientOptions.d.ts +76 -0
- package/dist/cluster/ClusterClientOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterClientOptions.js +61 -0
- package/dist/cluster/ClusterClientOptions.js.map +1 -0
- package/dist/cluster/ClusterClientReceptionist.d.ts +4 -10
- package/dist/cluster/ClusterClientReceptionist.d.ts.map +1 -1
- package/dist/cluster/ClusterClientReceptionist.js +17 -13
- package/dist/cluster/ClusterClientReceptionist.js.map +1 -1
- package/dist/cluster/ClusterClientReceptionistOptions.d.ts +38 -0
- package/dist/cluster/ClusterClientReceptionistOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterClientReceptionistOptions.js +32 -0
- package/dist/cluster/ClusterClientReceptionistOptions.js.map +1 -0
- package/dist/cluster/ClusterOptions.d.ts +122 -0
- package/dist/cluster/ClusterOptions.d.ts.map +1 -0
- package/dist/cluster/ClusterOptions.js +98 -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 +10 -7
- package/dist/cluster/FailureDetector.js.map +1 -1
- package/dist/cluster/FailureDetectorOptions.d.ts +49 -0
- package/dist/cluster/FailureDetectorOptions.d.ts.map +1 -0
- package/dist/cluster/FailureDetectorOptions.js +48 -0
- package/dist/cluster/FailureDetectorOptions.js.map +1 -0
- package/dist/cluster/Member.js +2 -2
- package/dist/cluster/Member.js.map +1 -1
- package/dist/cluster/PhiAccrualFailureDetector.d.ts +4 -20
- package/dist/cluster/PhiAccrualFailureDetector.d.ts.map +1 -1
- package/dist/cluster/PhiAccrualFailureDetector.js +40 -44
- package/dist/cluster/PhiAccrualFailureDetector.js.map +1 -1
- package/dist/cluster/PhiAccrualOptions.d.ts +64 -0
- package/dist/cluster/PhiAccrualOptions.d.ts.map +1 -0
- package/dist/cluster/PhiAccrualOptions.js +68 -0
- package/dist/cluster/PhiAccrualOptions.js.map +1 -0
- package/dist/cluster/Protocol.d.ts +10 -10
- package/dist/cluster/Protocol.d.ts.map +1 -1
- package/dist/cluster/Protocol.js +1 -1
- package/dist/cluster/RefCodec.js +11 -1
- package/dist/cluster/RefCodec.js.map +1 -1
- package/dist/cluster/RemoteActorRef.d.ts +2 -2
- package/dist/cluster/RemoteActorRef.d.ts.map +1 -1
- package/dist/cluster/RemoteActorRef.js.map +1 -1
- package/dist/cluster/Transport.d.ts +3 -3
- package/dist/cluster/Transport.d.ts.map +1 -1
- package/dist/cluster/Transport.js +2 -2
- package/dist/cluster/Transport.js.map +1 -1
- package/dist/cluster/downing/KeepMajority.d.ts +3 -6
- package/dist/cluster/downing/KeepMajority.d.ts.map +1 -1
- package/dist/cluster/downing/KeepMajority.js +6 -6
- package/dist/cluster/downing/KeepMajority.js.map +1 -1
- package/dist/cluster/downing/KeepMajorityOptions.d.ts +26 -0
- package/dist/cluster/downing/KeepMajorityOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepMajorityOptions.js +19 -0
- package/dist/cluster/downing/KeepMajorityOptions.js.map +1 -0
- package/dist/cluster/downing/KeepOldest.d.ts +3 -12
- package/dist/cluster/downing/KeepOldest.d.ts.map +1 -1
- package/dist/cluster/downing/KeepOldest.js +5 -5
- 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 +3 -11
- package/dist/cluster/downing/KeepReferee.d.ts.map +1 -1
- package/dist/cluster/downing/KeepReferee.js +7 -7
- package/dist/cluster/downing/KeepReferee.js.map +1 -1
- package/dist/cluster/downing/KeepRefereeOptions.d.ts +41 -0
- package/dist/cluster/downing/KeepRefereeOptions.d.ts.map +1 -0
- package/dist/cluster/downing/KeepRefereeOptions.js +38 -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 +142 -17
- package/dist/cluster/downing/LeaseMajority.js.map +1 -1
- package/dist/cluster/downing/LeaseMajorityOptions.d.ts +55 -0
- package/dist/cluster/downing/LeaseMajorityOptions.d.ts.map +1 -0
- package/dist/cluster/downing/LeaseMajorityOptions.js +41 -0
- package/dist/cluster/downing/LeaseMajorityOptions.js.map +1 -0
- package/dist/cluster/downing/StaticQuorum.d.ts +3 -8
- package/dist/cluster/downing/StaticQuorum.d.ts.map +1 -1
- package/dist/cluster/downing/StaticQuorum.js +7 -8
- package/dist/cluster/downing/StaticQuorum.js.map +1 -1
- package/dist/cluster/downing/StaticQuorumOptions.d.ts +36 -0
- package/dist/cluster/downing/StaticQuorumOptions.d.ts.map +1 -0
- package/dist/cluster/downing/StaticQuorumOptions.js +33 -0
- package/dist/cluster/downing/StaticQuorumOptions.js.map +1 -0
- package/dist/cluster/downing/index.d.ts +10 -5
- package/dist/cluster/downing/index.d.ts.map +1 -1
- package/dist/cluster/downing/index.js +5 -0
- package/dist/cluster/downing/index.js.map +1 -1
- package/dist/cluster/index.d.ts +37 -22
- package/dist/cluster/index.d.ts.map +1 -1
- package/dist/cluster/index.js +17 -6
- 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 +6 -10
- package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubMediator.js +24 -22
- package/dist/cluster/pubsub/DistributedPubSubMediator.js.map +1 -1
- package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts +35 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts.map +1 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.js +33 -0
- package/dist/cluster/pubsub/DistributedPubSubOptions.js.map +1 -0
- package/dist/cluster/pubsub/Messages.d.ts +5 -5
- package/dist/cluster/pubsub/Messages.d.ts.map +1 -1
- package/dist/cluster/pubsub/Messages.js +2 -2
- package/dist/cluster/pubsub/Messages.js.map +1 -1
- package/dist/cluster/pubsub/index.d.ts +3 -2
- package/dist/cluster/pubsub/index.d.ts.map +1 -1
- package/dist/cluster/pubsub/index.js +2 -1
- 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 +10 -9
- package/dist/cluster/router/ClusterRouter.js.map +1 -1
- package/dist/cluster/router/ClusterRouterOptions.d.ts +70 -0
- package/dist/cluster/router/ClusterRouterOptions.d.ts.map +1 -0
- package/dist/cluster/router/ClusterRouterOptions.js +59 -0
- package/dist/cluster/router/ClusterRouterOptions.js.map +1 -0
- package/dist/cluster/router/ConsistentHashing.d.ts +1 -1
- package/dist/cluster/router/ConsistentHashing.d.ts.map +1 -1
- package/dist/cluster/router/ConsistentHashing.js +16 -16
- package/dist/cluster/router/ConsistentHashing.js.map +1 -1
- 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/AllocationStrategy.js +4 -4
- package/dist/cluster/sharding/AllocationStrategy.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 +20 -66
- package/dist/cluster/sharding/ClusterSharding.d.ts.map +1 -1
- package/dist/cluster/sharding/ClusterSharding.js +65 -39
- 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/ShardAllocator.js +14 -14
- package/dist/cluster/sharding/ShardAllocator.js.map +1 -1
- package/dist/cluster/sharding/ShardCoordinator.d.ts +4 -64
- package/dist/cluster/sharding/ShardCoordinator.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardCoordinator.js +73 -73
- 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 +11 -42
- package/dist/cluster/sharding/ShardRegion.d.ts.map +1 -1
- package/dist/cluster/sharding/ShardRegion.js +20 -20
- 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 +20 -15
- package/dist/cluster/sharding/ShardedDaemonProcess.js.map +1 -1
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts +57 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.js +47 -0
- package/dist/cluster/sharding/ShardedDaemonProcessOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardingOptions.d.ts +95 -0
- package/dist/cluster/sharding/ShardingOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/ShardingOptions.js +92 -0
- package/dist/cluster/sharding/ShardingOptions.js.map +1 -0
- package/dist/cluster/sharding/ShardingProtocol.d.ts +6 -6
- package/dist/cluster/sharding/ShardingProtocol.d.ts.map +1 -1
- package/dist/cluster/sharding/StartShardingOptions.d.ts +106 -0
- package/dist/cluster/sharding/StartShardingOptions.d.ts.map +1 -0
- package/dist/cluster/sharding/StartShardingOptions.js +67 -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 +22 -14
- package/dist/cluster/singleton/ClusterSingleton.js.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManager.d.ts +4 -19
- package/dist/cluster/singleton/ClusterSingletonManager.d.ts.map +1 -1
- package/dist/cluster/singleton/ClusterSingletonManager.js +26 -26
- 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/ClusterSingletonProxy.js +2 -2
- package/dist/cluster/singleton/ClusterSingletonProxy.js.map +1 -1
- package/dist/cluster/singleton/StartSingletonOptions.d.ts +70 -0
- package/dist/cluster/singleton/StartSingletonOptions.d.ts.map +1 -0
- package/dist/cluster/singleton/StartSingletonOptions.js +51 -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/Config.js +61 -61
- package/dist/config/Config.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/config/HoconParser.d.ts +2 -2
- package/dist/config/HoconParser.d.ts.map +1 -1
- package/dist/config/HoconParser.js +77 -77
- package/dist/config/HoconParser.js.map +1 -1
- package/dist/config/reference.d.ts.map +1 -1
- package/dist/config/reference.js +24 -0
- package/dist/config/reference.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 +74 -0
- package/dist/coordination/LeaseOptions.d.ts.map +1 -0
- package/dist/coordination/LeaseOptions.js +89 -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 +36 -22
- package/dist/coordination/leases/InMemoryLease.js.map +1 -1
- package/dist/coordination/leases/KubernetesLease.d.ts +20 -25
- package/dist/coordination/leases/KubernetesLease.d.ts.map +1 -1
- package/dist/coordination/leases/KubernetesLease.js +57 -36
- package/dist/coordination/leases/KubernetesLease.js.map +1 -1
- package/dist/coordination/leases/KubernetesLeaseOptions.d.ts +63 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.d.ts.map +1 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.js +53 -0
- package/dist/coordination/leases/KubernetesLeaseOptions.js.map +1 -0
- package/dist/coordination/leases/k8sApi.d.ts +1 -1
- package/dist/coordination/leases/k8sApi.js +1 -1
- package/dist/crdt/DistributedData.d.ts +14 -34
- package/dist/crdt/DistributedData.d.ts.map +1 -1
- package/dist/crdt/DistributedData.js +37 -34
- package/dist/crdt/DistributedData.js.map +1 -1
- package/dist/crdt/DistributedDataOptions.d.ts +56 -0
- package/dist/crdt/DistributedDataOptions.d.ts.map +1 -0
- package/dist/crdt/DistributedDataOptions.js +38 -0
- package/dist/crdt/DistributedDataOptions.js.map +1 -0
- package/dist/crdt/GCounter.js +4 -4
- package/dist/crdt/GCounter.js.map +1 -1
- package/dist/crdt/GCounterMap.js +7 -7
- package/dist/crdt/GCounterMap.js.map +1 -1
- package/dist/crdt/GSet.js +8 -8
- package/dist/crdt/GSet.js.map +1 -1
- package/dist/crdt/LWWMap.d.ts +1 -1
- package/dist/crdt/LWWMap.js +19 -19
- package/dist/crdt/LWWMap.js.map +1 -1
- package/dist/crdt/MVRegister.js +16 -16
- package/dist/crdt/MVRegister.js.map +1 -1
- package/dist/crdt/ORMap.d.ts +2 -2
- package/dist/crdt/ORMap.js +18 -18
- package/dist/crdt/ORMap.js.map +1 -1
- package/dist/crdt/ORSet.js +38 -38
- package/dist/crdt/ORSet.js.map +1 -1
- 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/ConsumerController.d.ts +4 -11
- package/dist/delivery/ConsumerController.d.ts.map +1 -1
- package/dist/delivery/ConsumerController.js +12 -12
- package/dist/delivery/ConsumerController.js.map +1 -1
- package/dist/delivery/ConsumerControllerOptions.d.ts +32 -0
- package/dist/delivery/ConsumerControllerOptions.d.ts.map +1 -0
- package/dist/delivery/ConsumerControllerOptions.js +21 -0
- package/dist/delivery/ConsumerControllerOptions.js.map +1 -0
- package/dist/delivery/Messages.d.ts +2 -2
- package/dist/delivery/Messages.d.ts.map +1 -1
- package/dist/delivery/ProducerController.d.ts +8 -23
- package/dist/delivery/ProducerController.d.ts.map +1 -1
- package/dist/delivery/ProducerController.js +30 -27
- package/dist/delivery/ProducerController.js.map +1 -1
- package/dist/delivery/ProducerControllerOptions.d.ts +56 -0
- package/dist/delivery/ProducerControllerOptions.d.ts.map +1 -0
- package/dist/delivery/ProducerControllerOptions.js +47 -0
- package/dist/delivery/ProducerControllerOptions.js.map +1 -0
- package/dist/delivery/ReliableDelivery.d.ts +6 -5
- package/dist/delivery/ReliableDelivery.d.ts.map +1 -1
- package/dist/delivery/ReliableDelivery.js +6 -6
- package/dist/delivery/ReliableDelivery.js.map +1 -1
- package/dist/delivery/index.d.ts +6 -3
- package/dist/delivery/index.d.ts.map +1 -1
- package/dist/delivery/index.js +2 -0
- package/dist/delivery/index.js.map +1 -1
- package/dist/discovery/AutoDiscoveryOptions.d.ts +78 -0
- package/dist/discovery/AutoDiscoveryOptions.d.ts.map +1 -0
- package/dist/discovery/AutoDiscoveryOptions.js +45 -0
- package/dist/discovery/AutoDiscoveryOptions.js.map +1 -0
- package/dist/discovery/ConfigSeedProvider.d.ts +3 -8
- package/dist/discovery/ConfigSeedProvider.d.ts.map +1 -1
- package/dist/discovery/ConfigSeedProvider.js +8 -6
- package/dist/discovery/ConfigSeedProvider.js.map +1 -1
- package/dist/discovery/ConfigSeedProviderOptions.d.ts +40 -0
- package/dist/discovery/ConfigSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/ConfigSeedProviderOptions.js +38 -0
- package/dist/discovery/ConfigSeedProviderOptions.js.map +1 -0
- package/dist/discovery/DnsSeedProvider.d.ts +4 -28
- package/dist/discovery/DnsSeedProvider.d.ts.map +1 -1
- package/dist/discovery/DnsSeedProvider.js +14 -15
- package/dist/discovery/DnsSeedProvider.js.map +1 -1
- package/dist/discovery/DnsSeedProviderOptions.d.ts +77 -0
- package/dist/discovery/DnsSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/DnsSeedProviderOptions.js +68 -0
- package/dist/discovery/DnsSeedProviderOptions.js.map +1 -0
- package/dist/discovery/KubernetesApiSeedProvider.d.ts +3 -14
- package/dist/discovery/KubernetesApiSeedProvider.d.ts.map +1 -1
- package/dist/discovery/KubernetesApiSeedProvider.js +9 -7
- package/dist/discovery/KubernetesApiSeedProvider.js.map +1 -1
- package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts +52 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts.map +1 -0
- package/dist/discovery/KubernetesApiSeedProviderOptions.js +52 -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 +19 -10
- package/dist/discovery/Receptionist.js.map +1 -1
- package/dist/discovery/ReceptionistMessages.d.ts +2 -2
- package/dist/discovery/ReceptionistMessages.d.ts.map +1 -1
- package/dist/discovery/ReceptionistMessages.js +1 -1
- package/dist/discovery/ReceptionistMessages.js.map +1 -1
- package/dist/discovery/ReceptionistOptions.d.ts +36 -0
- package/dist/discovery/ReceptionistOptions.d.ts.map +1 -0
- package/dist/discovery/ReceptionistOptions.js +34 -0
- package/dist/discovery/ReceptionistOptions.js.map +1 -0
- package/dist/discovery/ServiceKey.d.ts +2 -2
- package/dist/discovery/ServiceKey.d.ts.map +1 -1
- package/dist/discovery/ServiceKey.js.map +1 -1
- package/dist/discovery/autoDiscovery.d.ts +3 -44
- package/dist/discovery/autoDiscovery.d.ts.map +1 -1
- package/dist/discovery/autoDiscovery.js +37 -35
- package/dist/discovery/autoDiscovery.js.map +1 -1
- package/dist/discovery/index.d.ts +11 -6
- 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/fsm/FSM.d.ts +1 -1
- package/dist/fsm/FSM.js +1 -1
- package/dist/http/Html.d.ts +53 -0
- package/dist/http/Html.d.ts.map +1 -0
- package/dist/http/Html.js +92 -0
- package/dist/http/Html.js.map +1 -0
- package/dist/http/HttpExtension.d.ts +9 -0
- package/dist/http/HttpExtension.d.ts.map +1 -1
- package/dist/http/HttpExtension.js +106 -10
- package/dist/http/HttpExtension.js.map +1 -1
- package/dist/http/Marshalling.js +3 -3
- package/dist/http/Marshalling.js.map +1 -1
- package/dist/http/MimeTypes.d.ts +15 -0
- package/dist/http/MimeTypes.d.ts.map +1 -0
- package/dist/http/MimeTypes.js +87 -0
- package/dist/http/MimeTypes.js.map +1 -0
- package/dist/http/Route.d.ts +153 -4
- package/dist/http/Route.d.ts.map +1 -1
- package/dist/http/Route.js +170 -9
- package/dist/http/Route.js.map +1 -1
- package/dist/http/backend/ExpressBackend.d.ts +31 -20
- package/dist/http/backend/ExpressBackend.d.ts.map +1 -1
- package/dist/http/backend/ExpressBackend.js +199 -34
- package/dist/http/backend/ExpressBackend.js.map +1 -1
- package/dist/http/backend/ExpressBackendOptions.d.ts +53 -0
- package/dist/http/backend/ExpressBackendOptions.d.ts.map +1 -0
- package/dist/http/backend/ExpressBackendOptions.js +45 -0
- package/dist/http/backend/ExpressBackendOptions.js.map +1 -0
- package/dist/http/backend/FastifyBackend.d.ts +13 -1
- package/dist/http/backend/FastifyBackend.d.ts.map +1 -1
- package/dist/http/backend/FastifyBackend.js +124 -14
- package/dist/http/backend/FastifyBackend.js.map +1 -1
- package/dist/http/backend/HonoBackend.d.ts +39 -16
- package/dist/http/backend/HonoBackend.d.ts.map +1 -1
- package/dist/http/backend/HonoBackend.js +269 -35
- package/dist/http/backend/HonoBackend.js.map +1 -1
- package/dist/http/backend/HonoBackendOptions.d.ts +53 -0
- package/dist/http/backend/HonoBackendOptions.d.ts.map +1 -0
- package/dist/http/backend/HonoBackendOptions.js +45 -0
- package/dist/http/backend/HonoBackendOptions.js.map +1 -0
- package/dist/http/backend/HttpServerBackend.d.ts +36 -2
- package/dist/http/backend/HttpServerBackend.d.ts.map +1 -1
- package/dist/http/cache/IdempotencyKey.d.ts +2 -46
- package/dist/http/cache/IdempotencyKey.d.ts.map +1 -1
- package/dist/http/cache/IdempotencyKey.js +25 -20
- package/dist/http/cache/IdempotencyKey.js.map +1 -1
- package/dist/http/cache/IdempotencyOptions.d.ts +84 -0
- package/dist/http/cache/IdempotencyOptions.d.ts.map +1 -0
- package/dist/http/cache/IdempotencyOptions.js +61 -0
- package/dist/http/cache/IdempotencyOptions.js.map +1 -0
- package/dist/http/cache/RateLimit.d.ts +13 -32
- package/dist/http/cache/RateLimit.d.ts.map +1 -1
- package/dist/http/cache/RateLimit.js +42 -8
- package/dist/http/cache/RateLimit.js.map +1 -1
- package/dist/http/cache/RateLimitOptions.d.ts +80 -0
- package/dist/http/cache/RateLimitOptions.d.ts.map +1 -0
- package/dist/http/cache/RateLimitOptions.js +61 -0
- package/dist/http/cache/RateLimitOptions.js.map +1 -0
- package/dist/http/cache/ResponseCache.js +3 -3
- package/dist/http/cache/ResponseCache.js.map +1 -1
- package/dist/http/cache/index.d.ts +4 -2
- package/dist/http/cache/index.d.ts.map +1 -1
- package/dist/http/cache/index.js +2 -0
- package/dist/http/cache/index.js.map +1 -1
- package/dist/http/cookies.d.ts +38 -0
- package/dist/http/cookies.d.ts.map +1 -0
- package/dist/http/cookies.js +102 -0
- package/dist/http/cookies.js.map +1 -0
- package/dist/http/index.d.ts +19 -7
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +17 -2
- package/dist/http/index.js.map +1 -1
- package/dist/http/middleware/BasicAuth.d.ts +5 -0
- package/dist/http/middleware/BasicAuth.d.ts.map +1 -0
- package/dist/http/middleware/BasicAuth.js +58 -0
- package/dist/http/middleware/BasicAuth.js.map +1 -0
- package/dist/http/middleware/BasicAuthOptions.d.ts +22 -0
- package/dist/http/middleware/BasicAuthOptions.d.ts.map +1 -0
- package/dist/http/middleware/BasicAuthOptions.js +19 -0
- package/dist/http/middleware/BasicAuthOptions.js.map +1 -0
- 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/Cors.d.ts +39 -0
- package/dist/http/middleware/Cors.d.ts.map +1 -0
- package/dist/http/middleware/Cors.js +164 -0
- package/dist/http/middleware/Cors.js.map +1 -0
- package/dist/http/middleware/CorsOptions.d.ts +57 -0
- package/dist/http/middleware/CorsOptions.d.ts.map +1 -0
- package/dist/http/middleware/CorsOptions.js +62 -0
- package/dist/http/middleware/CorsOptions.js.map +1 -0
- package/dist/http/middleware/Csp.d.ts +13 -0
- package/dist/http/middleware/Csp.d.ts.map +1 -0
- package/dist/http/middleware/Csp.js +68 -0
- package/dist/http/middleware/Csp.js.map +1 -0
- package/dist/http/middleware/CspOptions.d.ts +53 -0
- package/dist/http/middleware/CspOptions.d.ts.map +1 -0
- package/dist/http/middleware/CspOptions.js +24 -0
- package/dist/http/middleware/CspOptions.js.map +1 -0
- package/dist/http/middleware/Csrf.d.ts +22 -0
- package/dist/http/middleware/Csrf.d.ts.map +1 -0
- package/dist/http/middleware/Csrf.js +165 -0
- package/dist/http/middleware/Csrf.js.map +1 -0
- package/dist/http/middleware/CsrfOptions.d.ts +75 -0
- package/dist/http/middleware/CsrfOptions.d.ts.map +1 -0
- package/dist/http/middleware/CsrfOptions.js +80 -0
- package/dist/http/middleware/CsrfOptions.js.map +1 -0
- package/dist/http/middleware/Hsts.d.ts +28 -0
- package/dist/http/middleware/Hsts.d.ts.map +1 -0
- package/dist/http/middleware/Hsts.js +34 -0
- package/dist/http/middleware/Hsts.js.map +1 -0
- package/dist/http/middleware/HstsOptions.d.ts +44 -0
- package/dist/http/middleware/HstsOptions.d.ts.map +1 -0
- package/dist/http/middleware/HstsOptions.js +49 -0
- package/dist/http/middleware/HstsOptions.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/RequestId.d.ts +5 -0
- package/dist/http/middleware/RequestId.d.ts.map +1 -0
- package/dist/http/middleware/RequestId.js +24 -0
- package/dist/http/middleware/RequestId.js.map +1 -0
- package/dist/http/middleware/RequestIdOptions.d.ts +22 -0
- package/dist/http/middleware/RequestIdOptions.d.ts.map +1 -0
- package/dist/http/middleware/RequestIdOptions.js +19 -0
- package/dist/http/middleware/RequestIdOptions.js.map +1 -0
- package/dist/http/middleware/SecurityHeaders.d.ts +11 -0
- package/dist/http/middleware/SecurityHeaders.d.ts.map +1 -0
- package/dist/http/middleware/SecurityHeaders.js +50 -0
- package/dist/http/middleware/SecurityHeaders.js.map +1 -0
- package/dist/http/middleware/SecurityHeadersOptions.d.ts +44 -0
- package/dist/http/middleware/SecurityHeadersOptions.d.ts.map +1 -0
- package/dist/http/middleware/SecurityHeadersOptions.js +40 -0
- package/dist/http/middleware/SecurityHeadersOptions.js.map +1 -0
- package/dist/http/middleware/Timeout.d.ts +13 -0
- package/dist/http/middleware/Timeout.d.ts.map +1 -0
- package/dist/http/middleware/Timeout.js +29 -0
- package/dist/http/middleware/Timeout.js.map +1 -0
- package/dist/http/middleware/TimeoutOptions.d.ts +30 -0
- package/dist/http/middleware/TimeoutOptions.d.ts.map +1 -0
- package/dist/http/middleware/TimeoutOptions.js +30 -0
- package/dist/http/middleware/TimeoutOptions.js.map +1 -0
- package/dist/http/middleware/headers.d.ts +21 -0
- package/dist/http/middleware/headers.d.ts.map +1 -0
- package/dist/http/middleware/headers.js +43 -0
- package/dist/http/middleware/headers.js.map +1 -0
- package/dist/http/middleware/index.d.ts +30 -0
- package/dist/http/middleware/index.d.ts.map +1 -0
- package/dist/http/middleware/index.js +23 -0
- package/dist/http/middleware/index.js.map +1 -0
- package/dist/http/static/DirectoryListing.d.ts +16 -0
- package/dist/http/static/DirectoryListing.d.ts.map +1 -0
- package/dist/http/static/DirectoryListing.js +39 -0
- package/dist/http/static/DirectoryListing.js.map +1 -0
- package/dist/http/static/StaticFiles.d.ts +11 -0
- package/dist/http/static/StaticFiles.d.ts.map +1 -0
- package/dist/http/static/StaticFiles.js +202 -0
- package/dist/http/static/StaticFiles.js.map +1 -0
- package/dist/http/static/StaticFilesOptions.d.ts +76 -0
- package/dist/http/static/StaticFilesOptions.d.ts.map +1 -0
- package/dist/http/static/StaticFilesOptions.js +83 -0
- package/dist/http/static/StaticFilesOptions.js.map +1 -0
- package/dist/http/static/fsAccess.d.ts +25 -0
- package/dist/http/static/fsAccess.d.ts.map +1 -0
- package/dist/http/static/fsAccess.js +42 -0
- package/dist/http/static/fsAccess.js.map +1 -0
- package/dist/http/static/index.d.ts +7 -0
- package/dist/http/static/index.d.ts.map +1 -0
- package/dist/http/static/index.js +5 -0
- package/dist/http/static/index.js.map +1 -0
- package/dist/http/static/staticPath.d.ts +14 -0
- package/dist/http/static/staticPath.d.ts.map +1 -0
- package/dist/http/static/staticPath.js +67 -0
- package/dist/http/static/staticPath.js.map +1 -0
- package/dist/http/types.d.ts +33 -3
- package/dist/http/types.d.ts.map +1 -1
- package/dist/http/types.js +11 -1
- package/dist/http/types.js.map +1 -1
- package/dist/http/websocket/ConnectionWiring.d.ts +59 -0
- package/dist/http/websocket/ConnectionWiring.d.ts.map +1 -0
- package/dist/http/websocket/ConnectionWiring.js +165 -0
- package/dist/http/websocket/ConnectionWiring.js.map +1 -0
- package/dist/http/websocket/SocketAdapter.d.ts +72 -0
- package/dist/http/websocket/SocketAdapter.d.ts.map +1 -0
- package/dist/http/websocket/SocketAdapter.js +97 -0
- package/dist/http/websocket/SocketAdapter.js.map +1 -0
- package/dist/http/websocket/WebsocketClientActor.d.ts +68 -0
- package/dist/http/websocket/WebsocketClientActor.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketClientActor.js +195 -0
- package/dist/http/websocket/WebsocketClientActor.js.map +1 -0
- package/dist/http/websocket/WebsocketClientOptions.d.ts +82 -0
- package/dist/http/websocket/WebsocketClientOptions.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketClientOptions.js +82 -0
- package/dist/http/websocket/WebsocketClientOptions.js.map +1 -0
- package/dist/http/websocket/WebsocketCodec.d.ts +65 -0
- package/dist/http/websocket/WebsocketCodec.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketCodec.js +82 -0
- package/dist/http/websocket/WebsocketCodec.js.map +1 -0
- package/dist/http/websocket/WebsocketConnection.d.ts +59 -0
- package/dist/http/websocket/WebsocketConnection.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketConnection.js +45 -0
- package/dist/http/websocket/WebsocketConnection.js.map +1 -0
- package/dist/http/websocket/WebsocketConnectionActor.d.ts +51 -0
- package/dist/http/websocket/WebsocketConnectionActor.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketConnectionActor.js +170 -0
- package/dist/http/websocket/WebsocketConnectionActor.js.map +1 -0
- package/dist/http/websocket/WebsocketMessages.d.ts +115 -0
- package/dist/http/websocket/WebsocketMessages.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketMessages.js +41 -0
- package/dist/http/websocket/WebsocketMessages.js.map +1 -0
- package/dist/http/websocket/WebsocketPolicy.d.ts +51 -0
- package/dist/http/websocket/WebsocketPolicy.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketPolicy.js +70 -0
- package/dist/http/websocket/WebsocketPolicy.js.map +1 -0
- package/dist/http/websocket/WebsocketRoute.d.ts +20 -0
- package/dist/http/websocket/WebsocketRoute.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketRoute.js +72 -0
- package/dist/http/websocket/WebsocketRoute.js.map +1 -0
- package/dist/http/websocket/WebsocketRouteOptions.d.ts +91 -0
- package/dist/http/websocket/WebsocketRouteOptions.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketRouteOptions.js +92 -0
- package/dist/http/websocket/WebsocketRouteOptions.js.map +1 -0
- package/dist/http/websocket/WebsocketServerActor.d.ts +65 -0
- package/dist/http/websocket/WebsocketServerActor.d.ts.map +1 -0
- package/dist/http/websocket/WebsocketServerActor.js +141 -0
- package/dist/http/websocket/WebsocketServerActor.js.map +1 -0
- package/dist/http/websocket/index.d.ts +22 -0
- package/dist/http/websocket/index.d.ts.map +1 -0
- package/dist/http/websocket/index.js +15 -0
- package/dist/http/websocket/index.js.map +1 -0
- package/dist/http/websocket/matchPattern.d.ts +12 -0
- package/dist/http/websocket/matchPattern.d.ts.map +1 -0
- package/dist/http/websocket/matchPattern.js +43 -0
- package/dist/http/websocket/matchPattern.js.map +1 -0
- package/dist/http/websocket/rawResponse.d.ts +15 -0
- package/dist/http/websocket/rawResponse.d.ts.map +1 -0
- package/dist/http/websocket/rawResponse.js +64 -0
- package/dist/http/websocket/rawResponse.js.map +1 -0
- package/dist/http/websocket/types.d.ts +70 -0
- package/dist/http/websocket/types.d.ts.map +1 -0
- package/dist/http/websocket/types.js +81 -0
- package/dist/http/websocket/types.js.map +1 -0
- package/dist/http/websocket/websocketConstructor.d.ts +34 -0
- package/dist/http/websocket/websocketConstructor.d.ts.map +1 -0
- package/dist/http/websocket/websocketConstructor.js +38 -0
- package/dist/http/websocket/websocketConstructor.js.map +1 -0
- package/dist/index.d.ts +31 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/internal/ActorCell.d.ts +24 -9
- package/dist/internal/ActorCell.d.ts.map +1 -1
- package/dist/internal/ActorCell.js +66 -36
- package/dist/internal/ActorCell.js.map +1 -1
- package/dist/internal/LocalActorRef.d.ts +4 -4
- package/dist/internal/LocalActorRef.d.ts.map +1 -1
- package/dist/internal/LocalActorRef.js.map +1 -1
- package/dist/io/broker/AmqpActor.d.ts +26 -21
- package/dist/io/broker/AmqpActor.d.ts.map +1 -1
- package/dist/io/broker/AmqpActor.js +41 -31
- package/dist/io/broker/AmqpActor.js.map +1 -1
- package/dist/io/broker/AmqpOptions.d.ts +46 -0
- package/dist/io/broker/AmqpOptions.d.ts.map +1 -0
- package/dist/io/broker/AmqpOptions.js +45 -0
- package/dist/io/broker/AmqpOptions.js.map +1 -0
- package/dist/io/broker/BrokerActor.d.ts +34 -24
- package/dist/io/broker/BrokerActor.d.ts.map +1 -1
- package/dist/io/broker/BrokerActor.js +51 -36
- package/dist/io/broker/BrokerActor.js.map +1 -1
- package/dist/io/broker/BrokerOptions.d.ts +125 -0
- package/dist/io/broker/BrokerOptions.d.ts.map +1 -0
- package/dist/io/broker/BrokerOptions.js +151 -0
- package/dist/io/broker/BrokerOptions.js.map +1 -0
- package/dist/io/broker/GrpcClientActor.d.ts +13 -24
- package/dist/io/broker/GrpcClientActor.d.ts.map +1 -1
- package/dist/io/broker/GrpcClientActor.js +42 -40
- package/dist/io/broker/GrpcClientActor.js.map +1 -1
- package/dist/io/broker/GrpcClientOptions.d.ts +53 -0
- package/dist/io/broker/GrpcClientOptions.d.ts.map +1 -0
- package/dist/io/broker/GrpcClientOptions.js +52 -0
- package/dist/io/broker/GrpcClientOptions.js.map +1 -0
- package/dist/io/broker/GrpcServerActor.d.ts +6 -27
- package/dist/io/broker/GrpcServerActor.d.ts.map +1 -1
- package/dist/io/broker/GrpcServerActor.js +30 -30
- 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 +27 -47
- package/dist/io/broker/JetStreamActor.d.ts.map +1 -1
- package/dist/io/broker/JetStreamActor.js +93 -91
- package/dist/io/broker/JetStreamActor.js.map +1 -1
- package/dist/io/broker/JetStreamOptions.d.ts +69 -0
- package/dist/io/broker/JetStreamOptions.d.ts.map +1 -0
- package/dist/io/broker/JetStreamOptions.js +65 -0
- package/dist/io/broker/JetStreamOptions.js.map +1 -0
- package/dist/io/broker/KafkaActor.d.ts +24 -63
- package/dist/io/broker/KafkaActor.d.ts.map +1 -1
- package/dist/io/broker/KafkaActor.js +76 -62
- package/dist/io/broker/KafkaActor.js.map +1 -1
- package/dist/io/broker/KafkaOptions.d.ts +87 -0
- package/dist/io/broker/KafkaOptions.d.ts.map +1 -0
- package/dist/io/broker/KafkaOptions.js +61 -0
- package/dist/io/broker/KafkaOptions.js.map +1 -0
- package/dist/io/broker/MqttActor.d.ts +178 -116
- package/dist/io/broker/MqttActor.d.ts.map +1 -1
- package/dist/io/broker/MqttActor.js +373 -147
- 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 +149 -0
- package/dist/io/broker/MqttMessages.d.ts.map +1 -0
- package/dist/io/broker/MqttMessages.js +86 -0
- package/dist/io/broker/MqttMessages.js.map +1 -0
- package/dist/io/broker/MqttOptions.d.ts +109 -0
- package/dist/io/broker/MqttOptions.d.ts.map +1 -0
- package/dist/io/broker/MqttOptions.js +90 -0
- package/dist/io/broker/MqttOptions.js.map +1 -0
- package/dist/io/broker/NatsActor.d.ts +12 -25
- package/dist/io/broker/NatsActor.d.ts.map +1 -1
- package/dist/io/broker/NatsActor.js +36 -34
- package/dist/io/broker/NatsActor.js.map +1 -1
- package/dist/io/broker/NatsOptions.d.ts +56 -0
- package/dist/io/broker/NatsOptions.d.ts.map +1 -0
- package/dist/io/broker/NatsOptions.js +52 -0
- package/dist/io/broker/NatsOptions.js.map +1 -0
- package/dist/io/broker/RedisStreamsActor.d.ts +12 -28
- package/dist/io/broker/RedisStreamsActor.d.ts.map +1 -1
- package/dist/io/broker/RedisStreamsActor.js +40 -38
- package/dist/io/broker/RedisStreamsActor.js.map +1 -1
- package/dist/io/broker/RedisStreamsOptions.d.ts +56 -0
- package/dist/io/broker/RedisStreamsOptions.d.ts.map +1 -0
- package/dist/io/broker/RedisStreamsOptions.js +49 -0
- package/dist/io/broker/RedisStreamsOptions.js.map +1 -0
- package/dist/io/broker/SseActor.d.ts +12 -19
- package/dist/io/broker/SseActor.d.ts.map +1 -1
- package/dist/io/broker/SseActor.js +43 -22
- package/dist/io/broker/SseActor.js.map +1 -1
- package/dist/io/broker/SseOptions.d.ts +43 -0
- package/dist/io/broker/SseOptions.d.ts.map +1 -0
- package/dist/io/broker/SseOptions.js +40 -0
- package/dist/io/broker/SseOptions.js.map +1 -0
- package/dist/io/broker/TcpSocketActor.d.ts +12 -25
- package/dist/io/broker/TcpSocketActor.d.ts.map +1 -1
- package/dist/io/broker/TcpSocketActor.js +35 -24
- package/dist/io/broker/TcpSocketActor.js.map +1 -1
- package/dist/io/broker/TcpSocketOptions.d.ts +51 -0
- package/dist/io/broker/TcpSocketOptions.d.ts.map +1 -0
- package/dist/io/broker/TcpSocketOptions.js +45 -0
- package/dist/io/broker/TcpSocketOptions.js.map +1 -0
- package/dist/io/broker/UdpSocketActor.d.ts +12 -21
- package/dist/io/broker/UdpSocketActor.d.ts.map +1 -1
- package/dist/io/broker/UdpSocketActor.js +18 -16
- package/dist/io/broker/UdpSocketActor.js.map +1 -1
- package/dist/io/broker/UdpSocketOptions.d.ts +47 -0
- package/dist/io/broker/UdpSocketOptions.d.ts.map +1 -0
- package/dist/io/broker/UdpSocketOptions.js +49 -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 +22 -5
- package/dist/io/broker/index.js.map +1 -1
- package/dist/mailbox/BoundedMailbox.d.ts +3 -5
- package/dist/mailbox/BoundedMailbox.d.ts.map +1 -1
- package/dist/mailbox/BoundedMailbox.js +11 -4
- package/dist/mailbox/BoundedMailbox.js.map +1 -1
- package/dist/mailbox/BoundedMailboxOptions.d.ts +49 -0
- package/dist/mailbox/BoundedMailboxOptions.d.ts.map +1 -0
- package/dist/mailbox/BoundedMailboxOptions.js +46 -0
- package/dist/mailbox/BoundedMailboxOptions.js.map +1 -0
- package/dist/mailbox/PriorityMailbox.d.ts +2 -4
- package/dist/mailbox/PriorityMailbox.d.ts.map +1 -1
- package/dist/mailbox/PriorityMailbox.js +4 -4
- package/dist/mailbox/PriorityMailbox.js.map +1 -1
- package/dist/mailbox/PriorityMailboxOptions.d.ts +27 -0
- package/dist/mailbox/PriorityMailboxOptions.d.ts.map +1 -0
- package/dist/mailbox/PriorityMailboxOptions.js +20 -0
- package/dist/mailbox/PriorityMailboxOptions.js.map +1 -0
- package/dist/mailbox/index.d.ts +6 -2
- package/dist/mailbox/index.d.ts.map +1 -1
- package/dist/mailbox/index.js +2 -0
- package/dist/mailbox/index.js.map +1 -1
- package/dist/management/HttpManagement.d.ts +2 -18
- package/dist/management/HttpManagement.d.ts.map +1 -1
- package/dist/management/HttpManagement.js +38 -11
- package/dist/management/HttpManagement.js.map +1 -1
- package/dist/management/ManagementRoutesOptions.d.ts +43 -0
- package/dist/management/ManagementRoutesOptions.d.ts.map +1 -0
- package/dist/management/ManagementRoutesOptions.js +35 -0
- package/dist/management/ManagementRoutesOptions.js.map +1 -0
- package/dist/management/index.d.ts +2 -1
- package/dist/management/index.d.ts.map +1 -1
- package/dist/management/index.js +1 -0
- package/dist/management/index.js.map +1 -1
- package/dist/metrics/Metrics.js +11 -11
- package/dist/metrics/Metrics.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/PrometheusExporter.js +23 -23
- package/dist/metrics/PrometheusExporter.js.map +1 -1
- 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/pattern/BackoffPolicy.js +5 -5
- package/dist/pattern/BackoffPolicy.js.map +1 -1
- package/dist/pattern/CircuitBreaker.d.ts +3 -12
- package/dist/pattern/CircuitBreaker.d.ts.map +1 -1
- package/dist/pattern/CircuitBreaker.js +13 -16
- package/dist/pattern/CircuitBreaker.js.map +1 -1
- package/dist/pattern/CircuitBreakerOptions.d.ts +50 -0
- package/dist/pattern/CircuitBreakerOptions.d.ts.map +1 -0
- package/dist/pattern/CircuitBreakerOptions.js +53 -0
- package/dist/pattern/CircuitBreakerOptions.js.map +1 -0
- package/dist/pattern/index.d.ts +3 -1
- package/dist/pattern/index.d.ts.map +1 -1
- package/dist/pattern/index.js +1 -0
- package/dist/pattern/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 +9 -9
- 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/EventDispatcher.js +3 -3
- package/dist/persistence/EventDispatcher.js.map +1 -1
- package/dist/persistence/JournalEventBus.js +2 -2
- package/dist/persistence/JournalEventBus.js.map +1 -1
- package/dist/persistence/PersistenceOptions.d.ts +46 -1
- package/dist/persistence/PersistenceOptions.d.ts.map +1 -1
- package/dist/persistence/PersistenceOptions.js +1 -1
- package/dist/persistence/ReplicatedEventSourcedActor.d.ts +2 -2
- package/dist/persistence/ReplicatedEventSourcedActor.d.ts.map +1 -1
- package/dist/persistence/ReplicatedEventSourcedActor.js +4 -4
- 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 +5 -9
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts.map +1 -1
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js +52 -8
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js.map +1 -1
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts +83 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts.map +1 -0
- package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js +67 -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/CassandraClient.d.ts +1 -1
- package/dist/persistence/journals/CassandraClient.d.ts.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 +16 -7
- package/dist/persistence/journals/CassandraJournal.js.map +1 -1
- package/dist/persistence/journals/CassandraJournalOptions.d.ts +113 -0
- package/dist/persistence/journals/CassandraJournalOptions.d.ts.map +1 -0
- package/dist/persistence/journals/CassandraJournalOptions.js +101 -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 +4 -18
- package/dist/persistence/journals/SqliteJournal.d.ts.map +1 -1
- package/dist/persistence/journals/SqliteJournal.js +13 -8
- 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/migration/MigrationChain.js +3 -3
- package/dist/persistence/migration/MigrationChain.js.map +1 -1
- package/dist/persistence/migration/SchemaRegistry.js +9 -9
- package/dist/persistence/migration/SchemaRegistry.js.map +1 -1
- package/dist/persistence/migration/defaultsAdapter.js +10 -10
- package/dist/persistence/migration/defaultsAdapter.js.map +1 -1
- package/dist/persistence/migration/validatedAdapter.js +4 -4
- package/dist/persistence/migration/validatedAdapter.js.map +1 -1
- package/dist/persistence/migration/wrapLegacy.js +2 -2
- package/dist/persistence/migration/wrapLegacy.js.map +1 -1
- package/dist/persistence/object-storage/BodyCodec.d.ts +57 -0
- package/dist/persistence/object-storage/BodyCodec.d.ts.map +1 -1
- package/dist/persistence/object-storage/BodyCodec.js +88 -22
- package/dist/persistence/object-storage/BodyCodec.js.map +1 -1
- package/dist/persistence/object-storage/Compression.d.ts +28 -8
- package/dist/persistence/object-storage/Compression.d.ts.map +1 -1
- package/dist/persistence/object-storage/Compression.js +107 -32
- package/dist/persistence/object-storage/Compression.js.map +1 -1
- package/dist/persistence/object-storage/Encryption.js +3 -3
- package/dist/persistence/object-storage/Encryption.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 +61 -16
- package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js.map +1 -1
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts +51 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js +44 -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 +8 -24
- package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts.map +1 -1
- package/dist/persistence/object-storage/ObjectStoragePlugin.js +39 -29
- package/dist/persistence/object-storage/ObjectStoragePlugin.js.map +1 -1
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts +72 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/ObjectStoragePluginOptions.js +59 -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 +24 -21
- package/dist/persistence/object-storage/S3ObjectStorageBackend.js.map +1 -1
- package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts +70 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts.map +1 -0
- package/dist/persistence/object-storage/S3ObjectStorageOptions.js +58 -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 +45 -11
- 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/query/CassandraQuery.js +11 -11
- package/dist/persistence/query/CassandraQuery.js.map +1 -1
- package/dist/persistence/query/InMemoryQuery.js +12 -12
- package/dist/persistence/query/InMemoryQuery.js.map +1 -1
- package/dist/persistence/query/PersistenceQuery.js +6 -6
- package/dist/persistence/query/PersistenceQuery.js.map +1 -1
- package/dist/persistence/query/SqliteQuery.js +6 -6
- package/dist/persistence/query/SqliteQuery.js.map +1 -1
- package/dist/persistence/replicated/VectorClock.js +13 -13
- package/dist/persistence/replicated/VectorClock.js.map +1 -1
- 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 -9
- package/dist/persistence/snapshot-stores/CachedSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts +47 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js +47 -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 +3 -15
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js +28 -17
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js.map +1 -1
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts +67 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts.map +1 -0
- package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js +63 -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 +1 -14
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts.map +1 -1
- package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js +6 -3
- 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/persistence/storage/KeyValidator.js +3 -3
- package/dist/persistence/storage/KeyValidator.js.map +1 -1
- package/dist/persistence/storage/SqlIdentifier.d.ts +11 -0
- package/dist/persistence/storage/SqlIdentifier.d.ts.map +1 -0
- package/dist/persistence/storage/SqlIdentifier.js +16 -0
- package/dist/persistence/storage/SqlIdentifier.js.map +1 -0
- package/dist/runtime/detect.d.ts.map +1 -1
- package/dist/runtime/detect.js +7 -7
- package/dist/runtime/detect.js.map +1 -1
- 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 +24 -2
- 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/runtime/sqlite/BetterSqliteDriver.js.map +1 -1
- package/dist/runtime/sqlite/BunSqliteDriver.js.map +1 -1
- package/dist/runtime/tcp/BunTcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/BunTcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/DenoTcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/DenoTcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/DenoTcpBackend.js +3 -3
- package/dist/runtime/tcp/DenoTcpBackend.js.map +1 -1
- package/dist/runtime/tcp/NodeTcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/NodeTcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/TcpBackend.d.ts +3 -3
- package/dist/runtime/tcp/TcpBackend.d.ts.map +1 -1
- package/dist/runtime/tcp/index.d.ts +1 -1
- package/dist/runtime/tcp/index.d.ts.map +1 -1
- package/dist/runtime/worker/NodeWorkerBackend.js.map +1 -1
- package/dist/runtime/worker/WebWorkerBackend.js +3 -3
- package/dist/runtime/worker/WebWorkerBackend.js.map +1 -1
- package/dist/serialization/CborCodec.d.ts +2 -2
- package/dist/serialization/CborCodec.d.ts.map +1 -1
- package/dist/serialization/CborCodec.js +80 -80
- package/dist/serialization/CborCodec.js.map +1 -1
- package/dist/serialization/JsonSerializer.js +20 -7
- package/dist/serialization/JsonSerializer.js.map +1 -1
- package/dist/serialization/SerializationExtension.d.ts +2 -2
- package/dist/serialization/SerializationExtension.d.ts.map +1 -1
- package/dist/serialization/SerializationExtension.js +3 -3
- package/dist/serialization/SerializationExtension.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 +10 -9
- package/dist/testkit/ManualScheduler.js.map +1 -1
- package/dist/testkit/MockCluster.d.ts +67 -0
- package/dist/testkit/MockCluster.d.ts.map +1 -0
- package/dist/testkit/MockCluster.js +189 -0
- package/dist/testkit/MockCluster.js.map +1 -0
- package/dist/testkit/MockClusterOptions.d.ts +32 -0
- package/dist/testkit/MockClusterOptions.d.ts.map +1 -0
- package/dist/testkit/MockClusterOptions.js +23 -0
- package/dist/testkit/MockClusterOptions.js.map +1 -0
- package/dist/testkit/MultiNodeClusterFixture.d.ts +63 -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 -81
- package/dist/testkit/MultiNodeSpec.d.ts.map +1 -1
- package/dist/testkit/MultiNodeSpec.js +139 -44
- package/dist/testkit/MultiNodeSpec.js.map +1 -1
- package/dist/testkit/MultiNodeSpecOptions.d.ts +57 -0
- package/dist/testkit/MultiNodeSpecOptions.d.ts.map +1 -0
- package/dist/testkit/MultiNodeSpecOptions.js +43 -0
- package/dist/testkit/MultiNodeSpecOptions.js.map +1 -0
- package/dist/testkit/ParallelMultiNodeSpec.d.ts +13 -72
- package/dist/testkit/ParallelMultiNodeSpec.d.ts.map +1 -1
- package/dist/testkit/ParallelMultiNodeSpec.js +82 -36
- package/dist/testkit/ParallelMultiNodeSpec.js.map +1 -1
- package/dist/testkit/ParallelMultiNodeSpecOptions.d.ts +58 -0
- package/dist/testkit/ParallelMultiNodeSpecOptions.d.ts.map +1 -0
- package/dist/testkit/ParallelMultiNodeSpecOptions.js +51 -0
- package/dist/testkit/ParallelMultiNodeSpecOptions.js.map +1 -0
- 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 +7 -9
- package/dist/testkit/TestKit.d.ts.map +1 -1
- package/dist/testkit/TestKit.js +11 -7
- 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 +5 -10
- package/dist/testkit/TestProbe.d.ts.map +1 -1
- package/dist/testkit/TestProbe.js +23 -20
- package/dist/testkit/TestProbe.js.map +1 -1
- package/dist/testkit/TestProbeOptions.d.ts +32 -0
- package/dist/testkit/TestProbeOptions.d.ts.map +1 -0
- package/dist/testkit/TestProbeOptions.js +29 -0
- package/dist/testkit/TestProbeOptions.js.map +1 -0
- package/dist/testkit/index.d.ts +15 -4
- package/dist/testkit/index.d.ts.map +1 -1
- package/dist/testkit/index.js +8 -0
- package/dist/testkit/index.js.map +1 -1
- package/dist/testkit/internal/MultiNodeBroker.js +3 -3
- package/dist/testkit/internal/MultiNodeBroker.js.map +1 -1
- package/dist/testkit/internal/MultiNodeTransport.js +2 -2
- package/dist/testkit/internal/MultiNodeTransport.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 +21 -17
- 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/Tracer.js +2 -2
- package/dist/tracing/Tracer.js.map +1 -1
- 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/typed/TypedActor.d.ts.map +1 -1
- package/dist/typed/TypedActor.js +6 -6
- package/dist/typed/TypedActor.js.map +1 -1
- package/dist/util/Constants.d.ts +24 -1
- package/dist/util/Constants.d.ts.map +1 -1
- package/dist/util/Constants.js +24 -1
- package/dist/util/Constants.js.map +1 -1
- package/dist/util/Either.js +4 -4
- package/dist/util/Either.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/util/OptionsValidator.d.ts +114 -0
- package/dist/util/OptionsValidator.d.ts.map +1 -0
- package/dist/util/OptionsValidator.js +204 -0
- package/dist/util/OptionsValidator.js.map +1 -0
- package/dist/util/Try.js +4 -4
- package/dist/util/Try.js.map +1 -1
- package/dist/worker/WorkerCluster.d.ts +3 -12
- package/dist/worker/WorkerCluster.d.ts.map +1 -1
- package/dist/worker/WorkerCluster.js +33 -30
- package/dist/worker/WorkerCluster.js.map +1 -1
- package/dist/worker/WorkerClusterOptions.d.ts +61 -0
- package/dist/worker/WorkerClusterOptions.d.ts.map +1 -0
- package/dist/worker/WorkerClusterOptions.js +70 -0
- package/dist/worker/WorkerClusterOptions.js.map +1 -0
- package/dist/worker/WorkerNode.js +5 -5
- package/dist/worker/WorkerNode.js.map +1 -1
- 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/BrokerSettings.d.ts +0 -72
- package/dist/io/broker/BrokerSettings.d.ts.map +0 -1
- package/dist/io/broker/BrokerSettings.js +0 -73
- package/dist/io/broker/BrokerSettings.js.map +0 -1
- 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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { NodeAddress } from '../cluster/NodeAddress.js';
|
|
2
|
+
import { DnsSeedProviderOptionsValidator } from './DnsSeedProviderOptions.js';
|
|
2
3
|
/**
|
|
3
4
|
* Seed provider backed by DNS. Default mode resolves A records and pairs
|
|
4
5
|
* each IP with the configured port; SRV mode picks up `name:port` directly.
|
|
5
6
|
*
|
|
6
|
-
* The actual DNS functions are injected via
|
|
7
|
+
* The actual DNS functions are injected via options so tests can stub them
|
|
7
8
|
* without touching the network. The real impl uses `node:dns/promises`.
|
|
8
9
|
*
|
|
9
10
|
* **TTL cache:** repeated lookups inside the configured `cacheTtlMs`
|
|
@@ -11,15 +12,13 @@ import { NodeAddress } from '../cluster/NodeAddress.js';
|
|
|
11
12
|
* DNS load on large clusters where each node polls the same name.
|
|
12
13
|
*/
|
|
13
14
|
export class DnsSeedProvider {
|
|
14
|
-
settings;
|
|
15
15
|
cached = null;
|
|
16
16
|
cacheTtlMs;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
17
|
+
options;
|
|
18
|
+
constructor(options = {}) {
|
|
19
|
+
this.options = options;
|
|
20
|
+
new DnsSeedProviderOptionsValidator().validate(this.options);
|
|
21
|
+
this.cacheTtlMs = this.options.cacheTtlMs ?? 60_000;
|
|
23
22
|
}
|
|
24
23
|
async lookup() {
|
|
25
24
|
const now = Date.now();
|
|
@@ -35,14 +34,14 @@ export class DnsSeedProvider {
|
|
|
35
34
|
/** Test hook — drop the cached entry so the next `lookup()` re-queries DNS. */
|
|
36
35
|
invalidateCacheForTest() { this.cached = null; }
|
|
37
36
|
async doLookup() {
|
|
38
|
-
if (this.
|
|
39
|
-
const resolveSrv = this.
|
|
40
|
-
const records = await resolveSrv(this.
|
|
41
|
-
return records.map(r => new NodeAddress(this.
|
|
37
|
+
if (this.options.useSrv) {
|
|
38
|
+
const resolveSrv = this.options.resolveSrv ?? defaultResolveSrv;
|
|
39
|
+
const records = await resolveSrv(this.options.hostname);
|
|
40
|
+
return records.map(r => new NodeAddress(this.options.systemName, r.name, r.port));
|
|
42
41
|
}
|
|
43
|
-
const resolve = this.
|
|
44
|
-
const ips = await resolve(this.
|
|
45
|
-
return ips.map(ip => new NodeAddress(this.
|
|
42
|
+
const resolve = this.options.resolve ?? defaultResolve;
|
|
43
|
+
const ips = await resolve(this.options.hostname);
|
|
44
|
+
return ips.map(ip => new NodeAddress(this.options.systemName, ip, this.options.port));
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
async function defaultResolve(hostname) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DnsSeedProvider.js","sourceRoot":"","sources":["../../src/discovery/DnsSeedProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"DnsSeedProvider.js","sourceRoot":"","sources":["../../src/discovery/DnsSeedProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAI9E;;;;;;;;;;GAUG;AACH,MAAM,OAAO,eAAe;IAClB,MAAM,GAAuD,IAAI,CAAC;IACzD,UAAU,CAAS;IAEnB,OAAO,CAA6B;IAErD,YAAY,UAAkC,EAAE;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAqC,CAAC;QACrD,IAAI,+BAA+B,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,MAAM,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC3B,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YACxB,IAAI,CAAC,MAAM,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE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,OAAO,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { OptionsBuilder } from '../util/OptionsBuilder.js';
|
|
2
|
+
import { OptionsValidator } from '../util/OptionsValidator.js';
|
|
3
|
+
/** Plain options-object shape accepted by a {@link DnsSeedProvider}. */
|
|
4
|
+
export interface DnsSeedProviderOptionsType {
|
|
5
|
+
/** Hostname to resolve (e.g. `my-cluster.default.svc.cluster.local`). */
|
|
6
|
+
readonly hostname: string;
|
|
7
|
+
/** System name to stamp on discovered NodeAddresses. */
|
|
8
|
+
readonly systemName: string;
|
|
9
|
+
/** Port each discovered IP should be paired with. */
|
|
10
|
+
readonly port: number;
|
|
11
|
+
/** Override the DNS-resolve function — defaults to `node:dns/promises`. */
|
|
12
|
+
readonly resolve?: (hostname: string) => Promise<string[]>;
|
|
13
|
+
/** When using SRV records, override `resolveSrv` similarly. */
|
|
14
|
+
readonly resolveSrv?: (hostname: string) => Promise<Array<{
|
|
15
|
+
name: string;
|
|
16
|
+
port: number;
|
|
17
|
+
}>>;
|
|
18
|
+
/** If true, prefer SRV records (which carry a port) over A. */
|
|
19
|
+
readonly useSrv?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* In-process TTL cache for DNS lookups. Deliberately *not* a
|
|
22
|
+
* distributed cache — DNS resolution is a per-process concern, and a
|
|
23
|
+
* Redis hop here would cost more than the lookup itself. Default:
|
|
24
|
+
* 60_000 ms. Set `0` to disable. Failures are NOT cached: a query
|
|
25
|
+
* that throws will retry on the next call.
|
|
26
|
+
*/
|
|
27
|
+
readonly cacheTtlMs?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Fluent builder for {@link DnsSeedProviderOptionsType}.
|
|
31
|
+
*
|
|
32
|
+
* new DnsSeedProvider(
|
|
33
|
+
* DnsSeedProviderOptions.create()
|
|
34
|
+
* .withHostname('svc.default.svc.cluster.local')
|
|
35
|
+
* .withSystemName('my-system')
|
|
36
|
+
* .withPort(2552),
|
|
37
|
+
* );
|
|
38
|
+
*/
|
|
39
|
+
export declare class DnsSeedProviderOptionsBuilder extends OptionsBuilder<DnsSeedProviderOptionsType> {
|
|
40
|
+
/** Start a fresh builder. Equivalent to `new DnsSeedProviderOptionsBuilder()`. */
|
|
41
|
+
static create(): DnsSeedProviderOptionsBuilder;
|
|
42
|
+
/** Hostname to resolve (e.g. `my-cluster.default.svc.cluster.local`). */
|
|
43
|
+
withHostname(hostname: string): this;
|
|
44
|
+
/** System name to stamp on discovered NodeAddresses. */
|
|
45
|
+
withSystemName(systemName: string): this;
|
|
46
|
+
/** Port each discovered IP should be paired with. */
|
|
47
|
+
withPort(port: number): this;
|
|
48
|
+
/** Override the DNS-resolve function — defaults to `node:dns/promises`. */
|
|
49
|
+
withResolve(resolve: (hostname: string) => Promise<string[]>): this;
|
|
50
|
+
/** When using SRV records, override `resolveSrv` similarly. */
|
|
51
|
+
withResolveSrv(resolveSrv: (hostname: string) => Promise<Array<{
|
|
52
|
+
name: string;
|
|
53
|
+
port: number;
|
|
54
|
+
}>>): this;
|
|
55
|
+
/** If true, prefer SRV records (which carry a port) over A. */
|
|
56
|
+
withUseSrv(useSrv?: boolean): this;
|
|
57
|
+
/** In-process TTL cache for DNS lookups. Default 60_000 ms; `0` disables. */
|
|
58
|
+
withCacheTtlMs(cacheTtlMs: number): this;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Validates resolved {@link DnsSeedProviderOptionsType} settings. `cacheTtlMs`
|
|
62
|
+
* must be non-negative (0 disables caching); failures here are a
|
|
63
|
+
* misconfiguration, not a transient DNS problem.
|
|
64
|
+
*/
|
|
65
|
+
export declare class DnsSeedProviderOptionsValidator extends OptionsValidator<DnsSeedProviderOptionsType> {
|
|
66
|
+
constructor();
|
|
67
|
+
protected rules(s: Partial<DnsSeedProviderOptionsType>): void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Accepted input for the {@link DnsSeedProvider} constructor: the fluent
|
|
71
|
+
* {@link DnsSeedProviderOptionsBuilder} OR a plain
|
|
72
|
+
* {@link DnsSeedProviderOptionsType} object.
|
|
73
|
+
*/
|
|
74
|
+
export type DnsSeedProviderOptions = DnsSeedProviderOptionsBuilder | Partial<DnsSeedProviderOptionsType>;
|
|
75
|
+
/** Value alias so `DnsSeedProviderOptions.create()` / `new DnsSeedProviderOptions()` resolve to the builder. */
|
|
76
|
+
export declare const DnsSeedProviderOptions: typeof DnsSeedProviderOptionsBuilder;
|
|
77
|
+
//# sourceMappingURL=DnsSeedProviderOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DnsSeedProviderOptions.d.ts","sourceRoot":"","sources":["../../src/discovery/DnsSeedProviderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,wEAAwE;AACxE,MAAM,WAAW,0BAA0B;IACzC,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3D,+DAA+D;IAC/D,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,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C,0BAA0B,CAAC,CAAC;AACzG,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,sCAAgC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { OptionsBuilder } from '../util/OptionsBuilder.js';
|
|
2
|
+
import { OptionsValidator } from '../util/OptionsValidator.js';
|
|
3
|
+
/**
|
|
4
|
+
* Fluent builder for {@link DnsSeedProviderOptionsType}.
|
|
5
|
+
*
|
|
6
|
+
* new DnsSeedProvider(
|
|
7
|
+
* DnsSeedProviderOptions.create()
|
|
8
|
+
* .withHostname('svc.default.svc.cluster.local')
|
|
9
|
+
* .withSystemName('my-system')
|
|
10
|
+
* .withPort(2552),
|
|
11
|
+
* );
|
|
12
|
+
*/
|
|
13
|
+
export class DnsSeedProviderOptionsBuilder extends OptionsBuilder {
|
|
14
|
+
/** Start a fresh builder. Equivalent to `new DnsSeedProviderOptionsBuilder()`. */
|
|
15
|
+
static create() {
|
|
16
|
+
return new DnsSeedProviderOptionsBuilder();
|
|
17
|
+
}
|
|
18
|
+
/** Hostname to resolve (e.g. `my-cluster.default.svc.cluster.local`). */
|
|
19
|
+
withHostname(hostname) {
|
|
20
|
+
return this.set('hostname', hostname);
|
|
21
|
+
}
|
|
22
|
+
/** System name to stamp on discovered NodeAddresses. */
|
|
23
|
+
withSystemName(systemName) {
|
|
24
|
+
return this.set('systemName', systemName);
|
|
25
|
+
}
|
|
26
|
+
/** Port each discovered IP should be paired with. */
|
|
27
|
+
withPort(port) {
|
|
28
|
+
return this.set('port', port);
|
|
29
|
+
}
|
|
30
|
+
/** Override the DNS-resolve function — defaults to `node:dns/promises`. */
|
|
31
|
+
withResolve(resolve) {
|
|
32
|
+
return this.set('resolve', resolve);
|
|
33
|
+
}
|
|
34
|
+
/** When using SRV records, override `resolveSrv` similarly. */
|
|
35
|
+
withResolveSrv(resolveSrv) {
|
|
36
|
+
return this.set('resolveSrv', resolveSrv);
|
|
37
|
+
}
|
|
38
|
+
/** If true, prefer SRV records (which carry a port) over A. */
|
|
39
|
+
withUseSrv(useSrv = true) {
|
|
40
|
+
return this.set('useSrv', useSrv);
|
|
41
|
+
}
|
|
42
|
+
/** In-process TTL cache for DNS lookups. Default 60_000 ms; `0` disables. */
|
|
43
|
+
withCacheTtlMs(cacheTtlMs) {
|
|
44
|
+
return this.set('cacheTtlMs', cacheTtlMs);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Validates resolved {@link DnsSeedProviderOptionsType} settings. `cacheTtlMs`
|
|
49
|
+
* must be non-negative (0 disables caching); failures here are a
|
|
50
|
+
* misconfiguration, not a transient DNS problem.
|
|
51
|
+
*/
|
|
52
|
+
export class DnsSeedProviderOptionsValidator extends OptionsValidator {
|
|
53
|
+
constructor() {
|
|
54
|
+
super('DnsSeedProviderOptions');
|
|
55
|
+
}
|
|
56
|
+
rules(s) {
|
|
57
|
+
this.nonEmptyString('hostname');
|
|
58
|
+
this.nonEmptyString('systemName');
|
|
59
|
+
// `port` is only used in A-record mode; SRV records carry their own ports,
|
|
60
|
+
// so the field is ignored (0 is the conventional placeholder) when useSrv.
|
|
61
|
+
if (!s.useSrv)
|
|
62
|
+
this.positiveInt('port');
|
|
63
|
+
this.nonNegativeNumber('cacheTtlMs');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/** Value alias so `DnsSeedProviderOptions.create()` / `new DnsSeedProviderOptions()` resolve to the builder. */
|
|
67
|
+
export const DnsSeedProviderOptions = DnsSeedProviderOptionsBuilder;
|
|
68
|
+
//# sourceMappingURL=DnsSeedProviderOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DnsSeedProviderOptions.js","sourceRoot":"","sources":["../../src/discovery/DnsSeedProviderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AA0B/D;;;;;;;;;G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C3E,2EAA2E;QAC3E,IAAI,CAAC,CAAC,CAAC,MAAM;YAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;CACF;AAQD,gHAAgH;AAChH,MAAM,CAAC,MAAM,sBAAsB,GAAG,6BAA6B,CAAC"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { NodeAddress } from '../cluster/NodeAddress.js';
|
|
2
|
+
import type { KubernetesApiSeedProviderOptions } from './KubernetesApiSeedProviderOptions.js';
|
|
2
3
|
import type { SeedProvider } from './SeedProvider.js';
|
|
3
|
-
export interface KubernetesApiSeedProviderSettings {
|
|
4
|
-
/** Target namespace to look up endpoints in. */
|
|
5
|
-
readonly namespace: string;
|
|
6
|
-
/** Service or Endpoints name whose backing pods provide the cluster. */
|
|
7
|
-
readonly serviceName: string;
|
|
8
|
-
/** System name stamped on the discovered NodeAddresses. */
|
|
9
|
-
readonly systemName: string;
|
|
10
|
-
/** Port for the cluster remoting endpoint on each pod. */
|
|
11
|
-
readonly port: number;
|
|
12
|
-
/** Override the Endpoints-fetch function — defaults to the in-cluster API. */
|
|
13
|
-
readonly fetchEndpoints?: () => Promise<string[]>;
|
|
14
|
-
}
|
|
15
4
|
/**
|
|
16
5
|
* Seed provider driven by the Kubernetes API. Reads the Endpoints object
|
|
17
6
|
* for a headless Service (or any Service) and extracts the ready pod IPs.
|
|
@@ -23,8 +12,8 @@ export interface KubernetesApiSeedProviderSettings {
|
|
|
23
12
|
* ServiceAccount token mount.
|
|
24
13
|
*/
|
|
25
14
|
export declare class KubernetesApiSeedProvider implements SeedProvider {
|
|
26
|
-
private readonly
|
|
27
|
-
constructor(
|
|
15
|
+
private readonly options;
|
|
16
|
+
constructor(options?: KubernetesApiSeedProviderOptions);
|
|
28
17
|
lookup(): Promise<NodeAddress[]>;
|
|
29
18
|
}
|
|
30
19
|
//# sourceMappingURL=KubernetesApiSeedProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KubernetesApiSeedProvider.d.ts","sourceRoot":"","sources":["../../src/discovery/KubernetesApiSeedProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"KubernetesApiSeedProvider.d.ts","sourceRoot":"","sources":["../../src/discovery/KubernetesApiSeedProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,EAAE,gCAAgC,EAAwC,MAAM,uCAAuC,CAAC;AACpI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;;;;;GASG;AACH,qBAAa,yBAA0B,YAAW,YAAY;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuC;gBAEnD,OAAO,GAAE,gCAAqC;IAKpD,MAAM,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAKvC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NodeAddress } from '../cluster/NodeAddress.js';
|
|
2
|
+
import { KubernetesApiSeedProviderOptionsValidator } from './KubernetesApiSeedProviderOptions.js';
|
|
2
3
|
/**
|
|
3
4
|
* Seed provider driven by the Kubernetes API. Reads the Endpoints object
|
|
4
5
|
* for a headless Service (or any Service) and extracts the ready pod IPs.
|
|
@@ -10,14 +11,15 @@ import { NodeAddress } from '../cluster/NodeAddress.js';
|
|
|
10
11
|
* ServiceAccount token mount.
|
|
11
12
|
*/
|
|
12
13
|
export class KubernetesApiSeedProvider {
|
|
13
|
-
|
|
14
|
-
constructor(
|
|
15
|
-
this.
|
|
14
|
+
options;
|
|
15
|
+
constructor(options = {}) {
|
|
16
|
+
this.options = options;
|
|
17
|
+
new KubernetesApiSeedProviderOptionsValidator().validate(this.options);
|
|
16
18
|
}
|
|
17
19
|
async lookup() {
|
|
18
|
-
const fetchEndpoints = this.
|
|
20
|
+
const fetchEndpoints = this.options.fetchEndpoints ?? defaultFetchEndpoints(this.options);
|
|
19
21
|
const ips = await fetchEndpoints();
|
|
20
|
-
return ips.map(ip => new NodeAddress(this.
|
|
22
|
+
return ips.map(ip => new NodeAddress(this.options.systemName, ip, this.options.port));
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
@@ -25,7 +27,7 @@ export class KubernetesApiSeedProvider {
|
|
|
25
27
|
* credentials and calls the core API. Keeps the code path small — real
|
|
26
28
|
* production deployments often swap this for the canonical K8s client.
|
|
27
29
|
*/
|
|
28
|
-
function defaultFetchEndpoints(
|
|
30
|
+
function defaultFetchEndpoints(options) {
|
|
29
31
|
return async () => {
|
|
30
32
|
const fs = await import('node:fs/promises');
|
|
31
33
|
const https = await import('node:https');
|
|
@@ -33,7 +35,7 @@ function defaultFetchEndpoints(settings) {
|
|
|
33
35
|
const ca = await fs.readFile('/var/run/secrets/kubernetes.io/serviceaccount/ca.crt').catch(() => undefined);
|
|
34
36
|
if (!token)
|
|
35
37
|
throw new Error('KubernetesApiSeedProvider: no ServiceAccount token found — run inside a pod or provide fetchEndpoints');
|
|
36
|
-
const path = `/api/v1/namespaces/${
|
|
38
|
+
const path = `/api/v1/namespaces/${options.namespace}/endpoints/${options.serviceName}`;
|
|
37
39
|
const agent = new https.Agent(ca ? { ca } : {});
|
|
38
40
|
const res = await new Promise((resolve, reject) => {
|
|
39
41
|
const req = https.request({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KubernetesApiSeedProvider.js","sourceRoot":"","sources":["../../src/discovery/KubernetesApiSeedProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"KubernetesApiSeedProvider.js","sourceRoot":"","sources":["../../src/discovery/KubernetesApiSeedProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,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AAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;QACrG,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAEjC,CAAC;QACF,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC;YAC1C,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,SAAS,IAAI,EAAE;gBAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC/D,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OptionsBuilder } from '../util/OptionsBuilder.js';
|
|
2
|
+
import { OptionsValidator } from '../util/OptionsValidator.js';
|
|
3
|
+
/** Plain options-object shape accepted by a {@link KubernetesApiSeedProvider}. */
|
|
4
|
+
export interface KubernetesApiSeedProviderOptionsType {
|
|
5
|
+
/** Target namespace to look up endpoints in. */
|
|
6
|
+
readonly namespace: string;
|
|
7
|
+
/** Service or Endpoints name whose backing pods provide the cluster. */
|
|
8
|
+
readonly serviceName: string;
|
|
9
|
+
/** System name stamped on the discovered NodeAddresses. */
|
|
10
|
+
readonly systemName: string;
|
|
11
|
+
/** Port for the cluster remoting endpoint on each pod. */
|
|
12
|
+
readonly port: number;
|
|
13
|
+
/** Override the Endpoints-fetch function — defaults to the in-cluster API. */
|
|
14
|
+
readonly fetchEndpoints?: () => Promise<string[]>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Fluent builder for {@link KubernetesApiSeedProviderOptionsType}.
|
|
18
|
+
*
|
|
19
|
+
* new KubernetesApiSeedProvider(
|
|
20
|
+
* KubernetesApiSeedProviderOptions.create()
|
|
21
|
+
* .withNamespace('actors').withServiceName('my-svc')
|
|
22
|
+
* .withSystemName('my-system').withPort(2552),
|
|
23
|
+
* );
|
|
24
|
+
*/
|
|
25
|
+
export declare class KubernetesApiSeedProviderOptionsBuilder extends OptionsBuilder<KubernetesApiSeedProviderOptionsType> {
|
|
26
|
+
/** Start a fresh builder. Equivalent to `new KubernetesApiSeedProviderOptionsBuilder()`. */
|
|
27
|
+
static create(): KubernetesApiSeedProviderOptionsBuilder;
|
|
28
|
+
/** Target namespace to look up endpoints in. */
|
|
29
|
+
withNamespace(namespace: string): this;
|
|
30
|
+
/** Service or Endpoints name whose backing pods provide the cluster. */
|
|
31
|
+
withServiceName(serviceName: string): this;
|
|
32
|
+
/** System name stamped on the discovered NodeAddresses. */
|
|
33
|
+
withSystemName(systemName: string): this;
|
|
34
|
+
/** Port for the cluster remoting endpoint on each pod. */
|
|
35
|
+
withPort(port: number): this;
|
|
36
|
+
/** Override the Endpoints-fetch function — defaults to the in-cluster API. */
|
|
37
|
+
withFetchEndpoints(fetchEndpoints: () => Promise<string[]>): this;
|
|
38
|
+
}
|
|
39
|
+
/** Validates resolved {@link KubernetesApiSeedProviderOptionsType} settings. */
|
|
40
|
+
export declare class KubernetesApiSeedProviderOptionsValidator extends OptionsValidator<KubernetesApiSeedProviderOptionsType> {
|
|
41
|
+
constructor();
|
|
42
|
+
protected rules(_s: Partial<KubernetesApiSeedProviderOptionsType>): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Accepted input for the {@link KubernetesApiSeedProvider} constructor: the
|
|
46
|
+
* fluent {@link KubernetesApiSeedProviderOptionsBuilder} OR a plain
|
|
47
|
+
* {@link KubernetesApiSeedProviderOptionsType} object.
|
|
48
|
+
*/
|
|
49
|
+
export type KubernetesApiSeedProviderOptions = KubernetesApiSeedProviderOptionsBuilder | Partial<KubernetesApiSeedProviderOptionsType>;
|
|
50
|
+
/** Value alias so `KubernetesApiSeedProviderOptions.create()` / `new KubernetesApiSeedProviderOptions()` resolve to the builder. */
|
|
51
|
+
export declare const KubernetesApiSeedProviderOptions: typeof KubernetesApiSeedProviderOptionsBuilder;
|
|
52
|
+
//# sourceMappingURL=KubernetesApiSeedProviderOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KubernetesApiSeedProviderOptions.d.ts","sourceRoot":"","sources":["../../src/discovery/KubernetesApiSeedProviderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,kFAAkF;AAClF,MAAM,WAAW,oCAAoC;IACnD,gDAAgD;IAChD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,wEAAwE;IACxE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,qBAAa,uCAAwC,SAAQ,cAAc,CAAC,oCAAoC,CAAC;IAC/G,6FAA6F;IAC7F,MAAM,CAAC,MAAM,IAAI,uCAAuC;IAIxD,gDAAgD;IAChD,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAItC,wEAAwE;IACxE,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAI1C,2DAA2D;IAC3D,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAIxC,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI5B,8EAA8E;IAC9E,kBAAkB,CAAC,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI;CAGlE;AAED,gFAAgF;AAChF,qBAAa,yCAA0C,SAAQ,gBAAgB,CAAC,oCAAoC,CAAC;;IAInH,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,oCAAoC,CAAC,GAAG,IAAI;CAMzE;AAED;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GACxC,uCAAuC,GACvC,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAClD,oIAAoI;AACpI,eAAO,MAAM,gCAAgC,gDAA0C,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OptionsBuilder } from '../util/OptionsBuilder.js';
|
|
2
|
+
import { OptionsValidator } from '../util/OptionsValidator.js';
|
|
3
|
+
/**
|
|
4
|
+
* Fluent builder for {@link KubernetesApiSeedProviderOptionsType}.
|
|
5
|
+
*
|
|
6
|
+
* new KubernetesApiSeedProvider(
|
|
7
|
+
* KubernetesApiSeedProviderOptions.create()
|
|
8
|
+
* .withNamespace('actors').withServiceName('my-svc')
|
|
9
|
+
* .withSystemName('my-system').withPort(2552),
|
|
10
|
+
* );
|
|
11
|
+
*/
|
|
12
|
+
export class KubernetesApiSeedProviderOptionsBuilder extends OptionsBuilder {
|
|
13
|
+
/** Start a fresh builder. Equivalent to `new KubernetesApiSeedProviderOptionsBuilder()`. */
|
|
14
|
+
static create() {
|
|
15
|
+
return new KubernetesApiSeedProviderOptionsBuilder();
|
|
16
|
+
}
|
|
17
|
+
/** Target namespace to look up endpoints in. */
|
|
18
|
+
withNamespace(namespace) {
|
|
19
|
+
return this.set('namespace', namespace);
|
|
20
|
+
}
|
|
21
|
+
/** Service or Endpoints name whose backing pods provide the cluster. */
|
|
22
|
+
withServiceName(serviceName) {
|
|
23
|
+
return this.set('serviceName', serviceName);
|
|
24
|
+
}
|
|
25
|
+
/** System name stamped on the discovered NodeAddresses. */
|
|
26
|
+
withSystemName(systemName) {
|
|
27
|
+
return this.set('systemName', systemName);
|
|
28
|
+
}
|
|
29
|
+
/** Port for the cluster remoting endpoint on each pod. */
|
|
30
|
+
withPort(port) {
|
|
31
|
+
return this.set('port', port);
|
|
32
|
+
}
|
|
33
|
+
/** Override the Endpoints-fetch function — defaults to the in-cluster API. */
|
|
34
|
+
withFetchEndpoints(fetchEndpoints) {
|
|
35
|
+
return this.set('fetchEndpoints', fetchEndpoints);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/** Validates resolved {@link KubernetesApiSeedProviderOptionsType} settings. */
|
|
39
|
+
export class KubernetesApiSeedProviderOptionsValidator extends OptionsValidator {
|
|
40
|
+
constructor() {
|
|
41
|
+
super('KubernetesApiSeedProviderOptions');
|
|
42
|
+
}
|
|
43
|
+
rules(_s) {
|
|
44
|
+
this.nonEmptyString('namespace');
|
|
45
|
+
this.nonEmptyString('serviceName');
|
|
46
|
+
this.nonEmptyString('systemName');
|
|
47
|
+
this.positiveInt('port'); // node-address port (transport-agnostic — see ClusterOptions.port)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** Value alias so `KubernetesApiSeedProviderOptions.create()` / `new KubernetesApiSeedProviderOptions()` resolve to the builder. */
|
|
51
|
+
export const KubernetesApiSeedProviderOptions = KubernetesApiSeedProviderOptionsBuilder;
|
|
52
|
+
//# sourceMappingURL=KubernetesApiSeedProviderOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KubernetesApiSeedProviderOptions.js","sourceRoot":"","sources":["../../src/discovery/KubernetesApiSeedProviderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAgB/D;;;;;;;;GAQG;AACH,MAAM,OAAO,uCAAwC,SAAQ,cAAoD;IAC/G,6FAA6F;IAC7F,MAAM,CAAC,MAAM;QACX,OAAO,IAAI,uCAAuC,EAAE,CAAC;IACvD,CAAC;IAED,gDAAgD;IAChD,aAAa,CAAC,SAAiB;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED,wEAAwE;IACxE,eAAe,CAAC,WAAmB;QACjC,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IAC9C,CAAC;IAED,2DAA2D;IAC3D,cAAc,CAAC,UAAkB;QAC/B,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,0DAA0D;IAC1D,QAAQ,CAAC,IAAY;QACnB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,8EAA8E;IAC9E,kBAAkB,CAAC,cAAuC;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;IACpD,CAAC;CACF;AAED,gFAAgF;AAChF,MAAM,OAAO,yCAA0C,SAAQ,gBAAsD;IACnH;QACE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC5C,CAAC;IACS,KAAK,CAAC,EAAiD;QAC/D,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACjC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QACnC,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,mEAAmE;IAC/F,CAAC;CACF;AAUD,oIAAoI;AACpI,MAAM,CAAC,MAAM,gCAAgC,GAAG,uCAAuC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Actor } from '../Actor.js';
|
|
2
|
+
import type { ReceptionistOptions } from './ReceptionistOptions.js';
|
|
2
3
|
import { type Option } from '../util/Option.js';
|
|
3
4
|
import type { ActorRef } from '../ActorRef.js';
|
|
4
5
|
import type { ActorSystem } from '../ActorSystem.js';
|
|
@@ -6,10 +7,6 @@ import { type ExtensionId } from '../Extension.js';
|
|
|
6
7
|
import type { Cluster } from '../cluster/Cluster.js';
|
|
7
8
|
import { Deregister, Find, Register, Subscribe, Unsubscribe } from './ReceptionistMessages.js';
|
|
8
9
|
type Msg = Register | Deregister | Find | Subscribe | Unsubscribe;
|
|
9
|
-
export interface ReceptionistSettings {
|
|
10
|
-
readonly cluster?: Cluster | null;
|
|
11
|
-
readonly gossipIntervalMs?: number;
|
|
12
|
-
}
|
|
13
10
|
/**
|
|
14
11
|
* Cluster-wide service registry. Each node hosts one Receptionist actor.
|
|
15
12
|
* Register/Deregister are authoritative locally; peers learn about
|
|
@@ -26,7 +23,7 @@ export declare class Receptionist extends Actor<Msg> {
|
|
|
26
23
|
private gossipTimer;
|
|
27
24
|
private unsubWire;
|
|
28
25
|
private unsubCluster;
|
|
29
|
-
constructor(
|
|
26
|
+
constructor(options?: ReceptionistOptions);
|
|
30
27
|
preStart(): void;
|
|
31
28
|
postStop(): void;
|
|
32
29
|
onReceive(msg: Msg): void;
|
|
@@ -47,7 +44,7 @@ export declare class ReceptionistExtension {
|
|
|
47
44
|
private readonly system;
|
|
48
45
|
private started;
|
|
49
46
|
constructor(system: ActorSystem);
|
|
50
|
-
start(cluster?: Cluster | null,
|
|
47
|
+
start(cluster?: Cluster | null, options?: ReceptionistOptions): ActorRef<Msg>;
|
|
51
48
|
get(): Option<ActorRef<Msg>>;
|
|
52
49
|
}
|
|
53
50
|
export declare const ReceptionistId: ExtensionId<ReceptionistExtension>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Receptionist.d.ts","sourceRoot":"","sources":["../../src/discovery/Receptionist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Receptionist.d.ts","sourceRoot":"","sources":["../../src/discovery/Receptionist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,OAAO,KAAK,EAAE,mBAAmB,EAA2B,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EA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K1B;AAID,qBAAa,qBAAqB;IAEpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IADnC,OAAO,CAAC,OAAO,CAA8B;gBAChB,MAAM,EAAE,WAAW;IAEhD,KAAK,CACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,EACxB,OAAO,GAAE,mBAAwB,GAChC,QAAQ,CAAC,GAAG,CAAC;IAgBhB,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,qBAAqB,CAG7D,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { match, P } from 'ts-pattern';
|
|
2
2
|
import { Actor } from '../Actor.js';
|
|
3
3
|
import { DEFAULT_GOSSIP_INTERVAL_MS } from '../util/Constants.js';
|
|
4
|
+
import { ReceptionistOptionsValidator } from './ReceptionistOptions.js';
|
|
4
5
|
import { fromNullable } from '../util/Option.js';
|
|
5
6
|
import { extensionId } from '../Extension.js';
|
|
6
7
|
import { Props } from '../Props.js';
|
|
@@ -25,10 +26,12 @@ export class Receptionist extends Actor {
|
|
|
25
26
|
gossipTimer = null;
|
|
26
27
|
unsubWire = null;
|
|
27
28
|
unsubCluster = null;
|
|
28
|
-
constructor(
|
|
29
|
+
constructor(options = {}) {
|
|
29
30
|
super();
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
const resolvedOptions = options;
|
|
32
|
+
new ReceptionistOptionsValidator().validate(resolvedOptions);
|
|
33
|
+
this.clusterRef = resolvedOptions.cluster ?? null;
|
|
34
|
+
this.gossipIntervalMs = resolvedOptions.gossipIntervalMs ?? DEFAULT_GOSSIP_INTERVAL_MS;
|
|
32
35
|
}
|
|
33
36
|
preStart() {
|
|
34
37
|
if (this.clusterRef) {
|
|
@@ -155,12 +158,12 @@ export class Receptionist extends Actor {
|
|
|
155
158
|
}
|
|
156
159
|
/* ---------------- helpers ---------------- */
|
|
157
160
|
getOrCreate(key) {
|
|
158
|
-
let
|
|
159
|
-
if (!
|
|
160
|
-
|
|
161
|
-
this.keys.set(key.id,
|
|
161
|
+
let entry = this.keys.get(key.id);
|
|
162
|
+
if (!entry) {
|
|
163
|
+
entry = { local: new Map(), remote: new Map(), subscribers: new Set() };
|
|
164
|
+
this.keys.set(key.id, entry);
|
|
162
165
|
}
|
|
163
|
-
return
|
|
166
|
+
return entry;
|
|
164
167
|
}
|
|
165
168
|
maybeDrop(id, entry) {
|
|
166
169
|
if (entry.local.size === 0 && entry.remote.size === 0 && entry.subscribers.size === 0) {
|
|
@@ -194,10 +197,16 @@ export class ReceptionistExtension {
|
|
|
194
197
|
constructor(system) {
|
|
195
198
|
this.system = system;
|
|
196
199
|
}
|
|
197
|
-
start(cluster,
|
|
200
|
+
start(cluster, options = {}) {
|
|
198
201
|
if (this.started)
|
|
199
202
|
return this.started;
|
|
200
|
-
|
|
203
|
+
// `cluster` stays a positional arg (it's identity/wiring, not a tunable);
|
|
204
|
+
// fold it onto the resolved options so the actor sees a single object.
|
|
205
|
+
const resolvedOptions = {
|
|
206
|
+
...options,
|
|
207
|
+
cluster: cluster ?? null,
|
|
208
|
+
};
|
|
209
|
+
const ref = this.system.spawn(Props.create(() => new Receptionist(resolvedOptions)), 'receptionist');
|
|
201
210
|
this.started = ref;
|
|
202
211
|
return ref;
|
|
203
212
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Receptionist.js","sourceRoot":"","sources":["../../src/discovery/Receptionist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAI9D,OAAO,EAAE,WAAW,EAAoB,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,KAAK,EA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AM,OAAO,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1D,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,WAAW;YAAE,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AAED,uEAAuE;AAEvE,MAAM,OAAO,qBAAqB;IAEH;IADrB,OAAO,GAAyB,IAAI,CAAC;IAC7C,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CACH,OAAwB,EACxB,UAA+B,EAAE;QAEjC,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC;QACtC,0EAA0E;QAC1E,uEAAuE;QACvE,MAAM,eAAe,GAAqC;YACxD,GAAI,OAA4C;YAChD,OAAO,EAAE,OAAO,IAAI,IAAI;SACzB,CAAC;QACF,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAC3B,KAAK,CAAC,MAAM,CAAM,GAAG,EAAE,CAAC,IAAI,YAAY,CAAC,eAAe,CAAC,CAAC,EAC1D,cAAc,CACf,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;QACnB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,GAAG,KAA4B,OAAO,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACpE;AAED,MAAM,CAAC,MAAM,cAAc,GAAuC,WAAW,CAC3E,iCAAiC,EACjC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAC9C,CAAC"}
|
|
@@ -10,7 +10,7 @@ export declare class Register<T = unknown> {
|
|
|
10
10
|
/** Optional: reply with Registered once accepted. */
|
|
11
11
|
replyTo?: ActorRef | null);
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
13
|
+
/** Acknowledgment sent back to the `replyTo` of a Register message. */
|
|
14
14
|
export declare class Registered<T = unknown> {
|
|
15
15
|
readonly key: ServiceKey<T>;
|
|
16
16
|
readonly ref: ActorRef<T>;
|
|
@@ -55,7 +55,7 @@ export declare class Listing<T = unknown> {
|
|
|
55
55
|
constructor(key: ServiceKey<T>, refs: ReadonlyArray<ActorRef<T>>);
|
|
56
56
|
}
|
|
57
57
|
/** Wire message gossiped between receptionists. */
|
|
58
|
-
export interface
|
|
58
|
+
export interface ReceptionistGossipMessage {
|
|
59
59
|
readonly t: 'receptionist-gossip';
|
|
60
60
|
readonly from: import('../cluster/NodeAddress.js').NodeAddressData;
|
|
61
61
|
/** key-id → list of actor paths on the sender node */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReceptionistMessages.d.ts","sourceRoot":"","sources":["../../src/discovery/ReceptionistMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,+CAA+C;AAC/C,qBAAa,QAAQ,CAAC,CAAC,GAAG,OAAO;aAEb,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC;aAClB,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IAChC,qDAAqD;aACrC,OAAO,EAAE,QAAQ,GAAG,IAAI;gBAHxB,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,EAClB,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IAChC,qDAAqD;IACrC,OAAO,GAAE,QAAQ,GAAG,IAAW;CAElD;AAED,
|
|
1
|
+
{"version":3,"file":"ReceptionistMessages.d.ts","sourceRoot":"","sources":["../../src/discovery/ReceptionistMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,+CAA+C;AAC/C,qBAAa,Q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