MCPcopy
hub / github.com/tuna/tunasync / String

Method String

internal/msg.go:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62)
63
64func (c CmdVerb) String() string {
65 mapping := map[CmdVerb]string{
66 CmdStart: "start",
67 CmdStop: "stop",
68 CmdDisable: "disable",
69 CmdRestart: "restart",
70 CmdPing: "ping",
71 CmdReload: "reload",
72 }
73 return mapping[c]
74}
75
76func NewCmdVerbFromString(s string) CmdVerb {
77 mapping := map[string]CmdVerb{

Callers 15

MarshalJSONMethod · 0.95
TestLoggerPanicMethodsFunction · 0.45
HandleMethod · 0.45
attrValueFunction · 0.45
initializeFunction · 0.45
listJobsFunction · 0.45
updateMirrorSizeFunction · 0.45
removeWorkerFunction · 0.45

Calls

no outgoing calls