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

Method parseToken

pkg/topom/topom_api.go:216–222  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

214}
215
216func (s *apiServer) parseToken(params martini.Params) (string, error) {
217 token := params["token"]
218 if token == "" {
219 return "", errors.New("missing token")
220 }
221 return token, nil
222}
223
224func (s *apiServer) parseInteger(params martini.Params, entry string) (int, error) {
225 text := params[entry]

Callers 2

ReinitProxyMethod · 0.95
RemoveProxyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected