diff options
| author | Paul Bütow <pbuetow@mimecast.com> | 2020-01-09 20:30:15 +0000 |
|---|---|---|
| committer | Paul Bütow <pbuetow@mimecast.com> | 2020-01-09 20:30:15 +0000 |
| commit | 3755a9911ecb05886577095f2b8cc8b9e4066a3a (patch) | |
| tree | 86e24bc466986cb5c9c6d167a918e6064defeafc /discovery/comma.go | |
Release of DTail v1.0.0v1.0.0
Diffstat (limited to 'discovery/comma.go')
| -rw-r--r-- | discovery/comma.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/discovery/comma.go b/discovery/comma.go new file mode 100644 index 0000000..c7c9d75 --- /dev/null +++ b/discovery/comma.go @@ -0,0 +1,12 @@ +package discovery + +import ( + "dtail/logger" + "strings" +) + +// ServerListFromCOMMA retrieves a list of servers from comma separated input list. +func (d *Discovery) ServerListFromCOMMA() []string { + logger.Debug("Retrieving server list from comma separated list", d.server) + return strings.Split(d.server, ",") +} |
