MCPcopy Index your code
hub / github.com/google/seesaw / AddBackend

Method AddBackend

engine/config/types.go:202–209  ·  view source on GitHub ↗

AddBackend adds a Backend to a Vserver.

(backend *seesaw.Backend)

Source from the content-addressed store, hash-verified

200
201// AddBackend adds a Backend to a Vserver.
202func (v *Vserver) AddBackend(backend *seesaw.Backend) error {
203 key := backend.Key()
204 if _, ok := v.Backends[key]; ok {
205 return fmt.Errorf("Vserver %q already contains Backend %q", v.Name, key)
206 }
207 v.Backends[key] = backend
208 return nil
209}
210
211// AddHealthcheck adds a Healthcheck to a Vserver.
212func (v *Vserver) AddHealthcheck(h *Healthcheck) error {

Callers 1

addVserversFunction · 0.95

Calls 1

KeyMethod · 0.45

Tested by

no test coverage detected