Fix struct tag in apparently untested config struct

This commit is contained in:
Daniel Smith 2014-10-07 14:01:45 -07:00
parent 2d048bc0f2
commit 2dde76bd03

View File

@ -44,12 +44,13 @@ import (
) )
// serviceConfig is a deserialized form of the config file format which ConfigSourceFile accepts. // serviceConfig is a deserialized form of the config file format which ConfigSourceFile accepts.
// TODO: this is apparently untested; is it used?
type serviceConfig struct { type serviceConfig struct {
Services []struct { Services []struct {
Name string `json: "name"` Name string `json: "name"`
Port int `json: "port"` Port int `json: "port"`
Endpoints []string `json: "endpoints"` Endpoints []string `json: "endpoints"`
} `json: "service"` } `json:"service"`
} }
// ConfigSourceFile periodically reads service configurations in JSON from a file, and sends the services and endpoints defined in the file to the specified channels. // ConfigSourceFile periodically reads service configurations in JSON from a file, and sends the services and endpoints defined in the file to the specified channels.