MCPcopy Index your code
hub / github.com/coder/coder / headerString

Function headerString

vpn/speaker.go:330–332  ·  view source on GitHub ↗
(role SpeakerRole, versions RPCVersionList)

Source from the content-addressed store, hash-verified

328const headerPreamble = "codervpn"
329
330func headerString(role SpeakerRole, versions RPCVersionList) string {
331 return fmt.Sprintf("%s %s %s\n", headerPreamble, role, versions.String())
332}
333
334func validateHeader(header string, expectedRole SpeakerRole, supportedVersions RPCVersionList) (RPCVersion, error) {
335 parts := strings.Split(header, " ")

Callers 1

handshakeFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected