MCPcopy Create free account
hub / github.com/docker-flow/docker-flow-proxy / AddService

Method AddService

proxy/ha_proxy.go:199–201  ·  view source on GitHub ↗

AddService puts a service into `dataInstance` map. The key of the map is `ServiceName`

(service Service)

Source from the content-addressed store, hash-verified

197// AddService puts a service into `dataInstance` map.
198// The key of the map is `ServiceName`
199func (m HaProxy) AddService(service Service) {
200 dataInstance.Services[service.ServiceName] = service
201}
202
203// RemoveService deletes a service from the `dataInstance` map using `ServiceName` as the key
204// Returns false if there are no services to remove

Calls

no outgoing calls