INNER CODE UNIT · Go
func
gliderlabs/registrator · bridge/bridge.go:55
func (b *Bridge) Ping() error {
return b.registry.Ping()
}
func (b *Bridge) Add(containerId string) {
b.Lock()
defer b.Unlock()
b.add(containerId, false)
}
func (b *Bridge) Remove(containerId string) {
b.remove(containerId, true)
}
func (b *Bridge) RemoveOnExit(containerId string) {
b.remove(containerId, b.shouldRemove(containerId))
}