MCPcopy
hub / github.com/CodisLabs/codis / parseAddr

Method parseAddr

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

Source from the content-addressed store, hash-verified

206}
207
208func (s *apiServer) parseAddr(params martini.Params) (string, error) {
209 addr := params["addr"]
210 if addr == "" {
211 return "", errors.New("missing addr")
212 }
213 return addr, nil
214}
215
216func (s *apiServer) parseToken(params martini.Params) (string, error) {
217 token := params["token"]

Callers 13

CreateProxyMethod · 0.95
OnlineProxyMethod · 0.95
GroupAddServerMethod · 0.95
GroupDelServerMethod · 0.95
GroupPromoteServerMethod · 0.95
EnableReplicaGroupsMethod · 0.95
AddSentinelMethod · 0.95
DelSentinelMethod · 0.95
InfoServerMethod · 0.95
InfoSentinelMethod · 0.95
InfoSentinelMonitoredMethod · 0.95
SyncCreateActionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected