1
0
mirror of https://github.com/minio/minio.git synced 2025-03-26 15:30:57 -04:00

7 Commits

Author SHA1 Message Date
Frank Wessels
46897b1100 Name return values to prevent the need (and unnecessary code bloat) ()
This is done to explicitly instantiate objects for every return statement.
2017-06-21 19:53:09 -07:00
Harshavardhana
f1015a5096 notifiers: Stop using url.Parse in validating address format. ()
url.Parse() wrongly parses an address of format "address:port"
which is fixed in go1.8.  This inculcates a breaking change
on our end. We should fix this wrong usage everywhere so that
migrating to go1.8 eventually becomes smoother.
2017-03-31 04:47:40 -07:00
Anis Elleuch
8426cf9aec config: Accept more address format + unit test ()
checkURL() is a generic function to check if a passed address
is valid. This commit adds support for addresses like `m1`
and `172.16.3.1` which is needed in MySQL and NATS. This commit
also adds tests.
2017-03-16 11:44:01 -07:00
Anis Elleuch
ae4361cc45 config: Check for duplicated entries in all scopes ()
Validate Minio config by checking if there is double json key
in any scope level. The returned error contains the json path
to the duplicated key.
2017-03-15 16:30:34 -07:00
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
Anis Elleuch
f24753812a nats: Add support of NATS.io Streaming server () 2017-01-11 16:41:05 -08:00
Anis Elleuch
1e6afac3bd Add NATS notifier () 2016-09-29 23:42:10 -07:00