MCPcopy
hub / github.com/tinode/chat / String

Method String

server/auth/auth.go:29–35  ·  view source on GitHub ↗

String implements Stringer interface: gets human-readable name for a numeric authentication level.

()

Source from the content-addressed store, hash-verified

27
28// String implements Stringer interface: gets human-readable name for a numeric authentication level.
29func (a Level) String() string {
30 s, err := a.MarshalText()
31 if err != nil {
32 return "unkn"
33 }
34 return string(s)
35}
36
37// ParseAuthLevel parses authentication level from a string.
38func ParseAuthLevel(name string) Level {

Callers 15

InitMethod · 0.45
HeadersMethod · 0.45
UploadMethod · 0.45
DeleteMethod · 0.45
getFileRecordMethod · 0.45
HeadersMethod · 0.45
getFileRecordMethod · 0.45
InitMethod · 0.45
callEndpointMethod · 0.45
GenSecretMethod · 0.45
payloadToDataFunction · 0.45
InitMethod · 0.45

Calls 1

MarshalTextMethod · 0.95

Tested by 8

TestAuthGetUniqueRecordFunction · 0.36
initFunction · 0.36
TestAuthGetUniqueRecordFunction · 0.36
initFunction · 0.36
TestAuthGetUniqueRecordFunction · 0.36
initFunction · 0.36
TestAuthGetUniqueRecordFunction · 0.36
initFunction · 0.36