MCPcopy
hub / github.com/livekit/livekit / getConfigString

Function getConfigString

cmd/server/main.go:323–334  ·  view source on GitHub ↗
(configFile string, inConfigBody string)

Source from the content-addressed store, hash-verified

321}
322
323func getConfigString(configFile string, inConfigBody string) (string, error) {
324 if inConfigBody != "" || configFile == "" {
325 return inConfigBody, nil
326 }
327
328 outConfigBody, err := os.ReadFile(configFile)
329 if err != nil {
330 return "", err
331 }
332
333 return string(outConfigBody), nil
334}

Callers 3

TestGetConfigStringFunction · 0.85
getConfigFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestGetConfigStringFunction · 0.68