Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeServices ¶
type Service ¶
type Service struct {
consul.AgentService
Monitors []Monitor
Node string
}
Service contains details of services for a particular node, as well as the templates to use for that service
type Services ¶
type Services struct {
Services map[string]*Service
ByNode map[string][]*Service
MonitorByType map[string][]*Monitor
}
Services stores services per node, and handles writing them out to actual config files
func NewServices ¶
func NewServices() Services
NewServiceConfig will generate a new ServiceConfig object to populate with services
Click to show internal directories.
Click to hide internal directories.