MCPcopy Create free account
hub / github.com/distributedio/titan / String

Method String

command/constraint.go:36–72  ·  view source on GitHub ↗

String returns the string representation of flag

()

Source from the content-addressed store, hash-verified

34
35// String returns the string representation of flag
36func (f Flag) String() string {
37 switch f {
38 case CmdWrite:
39 return "write"
40 case CmdReadOnly:
41 return "readonly"
42 case CmdDenyOOM:
43 return "denyoom"
44 case CmdModule:
45 return "module"
46 case CmdAdmin:
47 return "admin"
48 case CmdPubsub:
49 return "pubsub"
50 case CmdNoScript:
51 return "noscript"
52 case CmdRandom:
53 return "random"
54 case CmdSortForScript:
55 return "sort_for_script"
56 case CmdLoading:
57 return "loading"
58 case CmdStale:
59 return "stale"
60 case CmdSkipMonitor:
61 return "skip_monitor"
62 case CmdAsking:
63 return "asking"
64 case CmdFast:
65 return "fast"
66 case CmdModuleGetKeys:
67 return "module_getkeys"
68 case CmdModuleNoCluster:
69 return "module_no_cluster"
70 }
71 return ""
72}
73
74// flags parse sflags to flags
75// This is the meaning of the flags:

Callers 15

debugObjectFunction · 0.45
TestInfoFunction · 0.45
TestMonitorFunction · 0.45
TestClient_ListFunction · 0.45
ObjectFunction · 0.45
TypeFunction · 0.45
GetFunction · 0.45
MSetNxFunction · 0.45
StrlenFunction · 0.45
AppendFunction · 0.45
GetSetFunction · 0.45
GetRangeFunction · 0.45

Calls

no outgoing calls

Tested by 9

TestInfoFunction · 0.36
TestMonitorFunction · 0.36
TestClient_ListFunction · 0.36
TestStringAppendFunction · 0.36
TestStringSetBitFunction · 0.36
TestStringGetBitFunction · 0.36
TestStringBitCountFunction · 0.36
TestStringBitPosFunction · 0.36
ctxStringFunction · 0.36