Noticed there's already a type property being exported here (elasticsearch).
My reasoning for making type: 'cache' is that corresponds to type: 'plugin', as in https://github.com/koopjs/koop-tile-plugin/blob/master/index.js#L6-L10. Eventually all providers would export type of provider, all caches type of cache, all plugins type of plugin, so we could infer what to do with them more easily and display information from them through the API more automagically.
Same as https://github.com/koopjs/koop-pgcache/pull/28
Noticed there's already a
type
property being exported here (elasticsearch
).My reasoning for making
type: 'cache'
is that corresponds totype: 'plugin'
, as in https://github.com/koopjs/koop-tile-plugin/blob/master/index.js#L6-L10. Eventually all providers would exporttype
of provider, all cachestype
of cache, all pluginstype
of plugin, so we could infer what to do with them more easily and display information from them through the API more automagically.:tophat: :sparkles: :rabbit2: