MCPcopy Index your code
hub / github.com/tinode/chat / parse_cred

Function parse_cred

tn-cli/utils.py:161–172  ·  view source on GitHub ↗
(cred)

Source from the content-addressed store, hash-verified

159
160# Parse credentials
161def parse_cred(cred):
162 result = None
163 if cred != None:
164 result = []
165 for c in cred.split(","):
166 parts = c.split(":")
167 from tinode_grpc import pb
168 result.append(pb.ClientCred(method=parts[0] if len(parts) > 0 else None,
169 value=parts[1] if len(parts) > 1 else None,
170 response=parts[2] if len(parts) > 2 else None))
171
172 return result
173
174
175# Parse trusted values: [staff,rm-verified].

Callers 4

accMsgFunction · 0.90
loginMsgFunction · 0.90
setMsgFunction · 0.90
delMsgFunction · 0.90

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…