// List the vips registered in my system func getVips(rw http.ResponseWriter, req *http.Request) { vips, err := common.GetVips() if err != nil { writeError(rw, req, err, http.StatusInternalServerError) return } writeBody(rw, req, vips, http.StatusOK) }
func (n None) Init() error { // load services services, err := common.GetServices() if err != nil { return err } // apply services err = common.SetServices(services) if err != nil { return err } // load routes routes, err := common.GetRoutes() if err != nil { return err } // apply routes err = common.SetRoutes(routes) if err != nil { return err } // load certs certs, err := common.GetCerts() if err != nil { return err } // apply certs err = common.SetCerts(certs) if err != nil { return err } // load vips vips, err := common.GetVips() if err != nil { return err } // apply vips err = common.SetVips(vips) if err != nil { return err } return nil }
func (n None) GetVips() ([]core.Vip, error) { return common.GetVips() }
func (r Redis) GetVips() ([]core.Vip, error) { return common.GetVips() }