1
0
mirror of https://github.com/minio/minio.git synced 2025-03-25 23:10:57 -04:00

2 Commits

Author SHA1 Message Date
Harshavardhana
1b4bb94ac4 config: setter/getter for Notifier and Logger into its own struct. ()
This is an attempt cleanup code and keep the top level config
functions simpler and easy to understand where as move the
notifier related code and logger setter/getter methods as part
of their own struct.

Locks are now held properly not globally by configMutex, but
instead as private variables.

Final fix for 
2017-02-09 15:20:54 -08:00
Aditya Manthramurthy
315e66858c Add PostgreSQL notifier () ()
* The user is required to specify a table name and database connection
  information in the configuration file.

* INSERTs and DELETEs are done via prepared statements for speed.

* Assumes a table structure, and requires PostgreSQL 9.5 or above due to
  the use of UPSERT.

* Creates the table if it does not exist with the given table name using
  a query like:

    CREATE TABLE myminio (
        key varchar PRIMARY KEY,
        value JSONB
    );

* Vendors some required libraries.
2016-10-03 17:29:55 -07:00