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

Method parseInteger

pkg/topom/topom_api.go:224–234  ·  view source on GitHub ↗
(params martini.Params, entry string)

Source from the content-addressed store, hash-verified

222}
223
224func (s *apiServer) parseInteger(params martini.Params, entry string) (int, error) {
225 text := params[entry]
226 if text == "" {
227 return 0, fmt.Errorf("missing %s", entry)
228 }
229 v, err := strconv.Atoi(text)
230 if err != nil {
231 return 0, fmt.Errorf("invalid %s", entry)
232 }
233 return v, nil
234}
235
236func (s *apiServer) CreateProxy(params martini.Params) (int, string) {
237 if err := s.verifyXAuth(params); err != nil {

Callers 15

RemoveProxyMethod · 0.95
CreateGroupMethod · 0.95
RemoveGroupMethod · 0.95
ResyncGroupMethod · 0.95
GroupAddServerMethod · 0.95
GroupDelServerMethod · 0.95
GroupPromoteServerMethod · 0.95
EnableReplicaGroupsMethod · 0.95
DelSentinelMethod · 0.95
SlotCreateActionMethod · 0.95
SlotCreateActionSomeMethod · 0.95

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected