NAME

Gungho::Component::Throttle::Domain - Throttle By Domain

SYNOPSIS

  ---
  throttle:
    domain:
      max_items 1000
      interval: 3600
      domains:
        - match: 'A [Regular]+ Exp?ression'
        - match: \.cpan\.org$
  components:
    - Throttle::Domain

METHODS

setup

throttle($request)

Checks if a request can be executed succesfully. Returns 1 if it's ok to execute the request.