Fake Mirrors
    Preparing search index...

    Class ProxyService

    Represents the proxy service.

    • Creates a new proxy.

      Parameters

      • data: { campaignId: string; proxyId: string; url: string }

      Returns Promise<void>

    • Deletes the proxy by its ID.

      Parameters

      • data: { campaignId: string; proxyId: string }

      Returns Promise<void>

    • Disables the proxy, stopping traffic routing.

      Parameters

      • data: { campaignId: string; proxyId: string }

      Returns Promise<void>

    • Enables the proxy, making it available for traffic routing.

      Parameters

      • data: { campaignId: string; proxyId: string }

      Returns Promise<void>

    • Lists all proxies for the campaign.

      Parameters

      • data: { campaignId: string }

      Returns Promise<ProxyModel[]>

    • Reads the proxy by its ID.

      Parameters

      • data: { campaignId: string; proxyId: string }

      Returns Promise<ProxyModel>

    • Registers the service as a singleton in the DI container.

      Parameters

      • container: DIContainer

        The DI container to register in.

      Returns void