postgresql events notification
added functionality for creating postgresql events notification
this was created using examples/set_postgresql_notification.go file
then i want to add functionality for connecting configuared event notification to bucket in minio-go
i suppose there is need to write kind of this functions for oher integrations like MySQl, Redis, Kafka and etc
using options struct instead of the raw string
i guess this way more self-explanatory then using set config and provide the raw string
under the hood, this function calls SetConfigKV but builds config string using provided parameters from struct
Pro: Convenient Cons: Seems a bit strange to offer this as a single config to abstract.
Undecided.
Yea, i am going to implement this functionality for all supported integratioins, theres is reused config values
// Staging directory for undelivered messages e.g. '/home/events'
QueueDir string
// Maximum limit for undelivered messages, defaults to '10000'
QueueLimit uint
// Specify a comment to associate with the Postgresql configuration
Comment string
The question is if it would be accepted as test for postgresql, if yes i continue to implement this functionality
It is not implemented purposely, so we don't have to bind by some structured contract. If we merge and publish this, we must maintain it for eternity. the KV API is kept fluid as the MinIO server changes it also changes automatically without making any new "madmin-go" releases.
If you want, you can keep a fork for your work that wraps on top of this SDK. While convenient there, this PR is a hidden burden on why we didn't do it ourselves.