Module: Fluent::MysqlBinlogFlydataInputPreference

Included in:
MysqlBinlogFlydataInput
Defined in:
lib/flydata/fluent-plugins/preference.rb

Constant Summary collapse

CUSTOM_CONFIG_PARAMS =
{
  mysql_data_entry_preference: {
    database: {},
    tables: {},
    tables_append_only: {},
    host: {},
    username: {},
    password: {encrypted: true},
    ssl_ca_content: {},
    ssl_cipher: {},
  },
}

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


84
85
86
87
88
89
90
91
92
93
# File 'lib/flydata/fluent-plugins/preference.rb', line 84

def self.included(base)
  base.class_eval do
    include DataEntryPreferenceConfigurable
    CUSTOM_CONFIG_PARAMS.each do |type, custom_conf|
      custom_conf.each do |key, option|
        custom_config_param key, type, option
      end
    end
  end
end