Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iph0 committed Oct 12, 2018
1 parent c17a9dd commit 188f0d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ omitted. Reference names in _ref directive can be relative or absolute.
host: "stat.mydb.com"
port: 1234
dbname: "stat"
username: "stat_writer"
username: "stat"
password:
_ref: {_name: "MYAPP_DB_STAT_PASSWORD", _default: "stat_writer_pass"}
_ref: {_name: "MYAPP_DB_STAT_PASSWORD", _default: "stat_pass"}
options: {_ref: "db.defaultOptions"}
metrics:
host: "metrics.mydb.com"
port: 1234
dbname: "metrics"
username: "metrics_writer"
username: "metrics"
password:
_ref: {_name: "MYAPP_DB_METRICS_PASSWORD", _default: "metrics_writer_pass"}
_ref: {_name: "MYAPP_DB_METRICS_PASSWORD", _default: "metrics_pass"}
options: {_ref: "...defaultOptions"}
_include directive loads configuration layer from external sources and inserts
Expand Down
8 changes: 4 additions & 4 deletions examples/etc/connectors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
host = "stat.mydb.com"
port = 1234
dbname = "stat"
username = "stat_writer"
username = "stat"
options = {_ref = "db.defaultOptions"}
[stat.password]
_ref = {_name = "MYAPP_DB_STAT_PASSWORD", _default = "stat_writer_pass"}
_ref = {_name = "MYAPP_DB_STAT_PASSWORD", _default = "stat_pass"}

[metrics]
host = "metrics.mydb.com"
port = 1234
dbname = "metrics"
username = "metrics_writer"
username = "metrics"
options = {_ref = "...defaultOptions"}
[metrics.password]
_ref = {_name = "MYAPP_DB_METRICS_PASSWORD", _default = "metrics_writer_pass"}
_ref = {_name = "MYAPP_DB_METRICS_PASSWORD", _default = "metrics_pass"}

0 comments on commit 188f0d9

Please sign in to comment.