func (n None) SetVip(vip core.Vip) error { err := common.SetVip(vip) if err != nil { return err } if database.CentralStore { return database.SetVip(vip) } return nil }
func (r Redis) SetVip(vip core.Vip) error { return common.SetVip(vip) }