Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/koding/kite
/ validateOperation
Function
validateOperation
protocol/webrtc.go:86–93 ·
view source on GitHub ↗
(op string)
Source
from the content-addressed store, hash-verified
84
}
85
86
func
validateOperation(op string) error {
87
switch
strings.ToUpper(op) {
88
case
"ANSWER"
,
"OFFER"
,
"CANDIDATE"
,
"LEAVE"
:
89
return
nil
90
default:
91
return
errInvalidOp
92
}
93
}
Callers
1
ParseWebRTCSignalMessage
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected