MCPcopy Index your code
hub / github.com/CodisLabs/codis / Stats

Method Stats

pkg/proxy/proxy_api.go:128–142  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

126}
127
128func (s *apiServer) Stats(params martini.Params) (int, string) {
129 if err := s.verifyXAuth(params); err != nil {
130 return rpc.ApiResponseError(err)
131 } else {
132 var flags StatsFlags
133 if s := params["flags"]; s != "" {
134 n, err := strconv.Atoi(s)
135 if err != nil {
136 return rpc.ApiResponseError(err)
137 }
138 flags = StatsFlags(n)
139 }
140 return rpc.ApiResponseJson(s.proxy.Stats(flags))
141 }
142}
143
144func (s *apiServer) Slots(params martini.Params) (int, string) {
145 if err := s.verifyXAuth(params); err != nil {

Callers 1

StatsNoXAuthMethod · 0.45

Calls 2

verifyXAuthMethod · 0.95
StatsFlagsTypeAlias · 0.85

Tested by

no test coverage detected