Creates a new lure repository instance.
The validator instance.
The config instance.
The logger instance.
The connector instance.
Creates a new lure.
The lure will be created in a disabled state (isEnabled = false).
Use enable to activate it for traffic routing.
The ID of the campaign to create the lure in.
The new lure ID to create.
The URL path for the lure.
The ID of the redirector that handles this lure.
The campaign lock secret obtained from CampaignRepository.lock.
Deletes the lure by its ID.
A lure must be disabled before it can be deleted.
The ID of the campaign containing the lure.
The lure ID to delete.
The ID of the redirector that handles this lure.
The campaign lock secret obtained from CampaignRepository.lock.
Disables the lure, stopping request routing.
When disabled, requests to the URL path will not be routed.
The ID of the campaign containing the lure.
The lure ID to disable.
The campaign lock secret obtained from CampaignRepository.lock.
Enables the lure, making it available for request routing.
When enabled, the URL path becomes active and can be used to serve the associated redirector content.
The ID of the campaign containing the lure.
The lure ID to enable.
The campaign lock secret obtained from CampaignRepository.lock.
Finds a lure by its URL path.
This is the primary routing method for HTTP requests. When a request arrives at a mirror domain, the request path is extracted and used to instantly find the corresponding lure via a direct hash lookup.
The ID of the campaign to search in.
The URL path to look up.
The lure model, or null if no lure matches the URL path.
Lists all lures for the campaign.
Lures are ordered by creation time (oldest first).
The ID of the campaign to list lures for.
The array of lure models, or null if the campaign does not exist.
Reads the lure by its ID.
The ID of the campaign containing the lure.
The lure ID to read.
The lure model, or null if the lure is not found.
StaticregisterRegisters the lure repository as a singleton in the DI container.
The DI container to register in.
Redis-based lure repository implementation.
Depends:
Example
Example