-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: added ReadAndWatchFile function
This function will update configuration whenever a file changes. This change introduces many data races (actually, it inherits these data races from howeyc/fsnotify). This issue has been reported as howeyc/fsnotify#29. Closes #2.
- Loading branch information
Francisco Souza
committed
Feb 6, 2013
1 parent
7b8d16d
commit f2f261d
Showing
3 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2013 config authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
database: | ||
host: 127.0.0.1 | ||
port: 8080 | ||
auth: | ||
salt: xpta | ||
key: sometoken1234 | ||
xpto: ble | ||
istrue: false | ||
fakebool: foo | ||
names: | ||
- Mary | ||
- John | ||
- Anthony | ||
- Gopher | ||
multiple-types: | ||
- Mary | ||
- 50 | ||
- 5.3 | ||
- true |