Added docs to the ExpandName method

This commit is contained in:
Diptanu Choudhury 2015-11-26 19:29:11 -08:00
parent cbfe727100
commit c2073ef292
1 changed files with 2 additions and 0 deletions

View File

@ -1042,6 +1042,8 @@ type ServiceCheck struct {
Timeout time.Duration // Timeout of the response from the check before consul fails the check
}
// ExpandName interpolates values of Job, Task Group and Task in the Service
// Name
func (s *Service) ExpandName(job string, taskGroup string, task string) {
s.Name = args.ReplaceEnv(s.Name, map[string]string{
"JOB": job,