(params martini.Params)
| 541 | } |
| 542 | |
| 543 | func (s *apiServer) InfoSentinelMonitored(params martini.Params) (int, string) { |
| 544 | addr, err := s.parseAddr(params) |
| 545 | if err != nil { |
| 546 | return rpc.ApiResponseError(err) |
| 547 | } |
| 548 | sentinel := redis.NewSentinel(s.topom.Config().ProductName, s.topom.Config().ProductAuth) |
| 549 | if info, err := sentinel.MastersAndSlaves(addr, s.topom.Config().SentinelClientTimeout.Duration()); err != nil { |
| 550 | return rpc.ApiResponseError(err) |
| 551 | } else { |
| 552 | return rpc.ApiResponseJson(info) |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | func (s *apiServer) SyncCreateAction(params martini.Params) (int, string) { |
| 557 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected