embulk / embulk-base-restclient

Base class library for Embulk plugins to access RESTful services
https://www.embulk.org/
Apache License 2.0
6 stars 7 forks source link

Add dispatching delegates to implement plugins switching per Config (such as "target"). #82

Closed dmikurube closed 7 years ago

dmikurube commented 7 years ago

@muga Can you have a look?

It's to implement plugins switching its behavior per Config. Imagine an input plugin from a kind of weather service, for example:

in:
  type: weather_service
  target: temperature  # Ingests from https://weather.example.com/api/temperature
in:
  type: weather_service
  target: precipitation  # Ingests from https://weather.example.com/api/precipitation

This extended Dispatching-Delegate classes make implementing such plugins easier and simpler.

dmikurube commented 7 years ago

Thanks!