MCPcopy
hub / github.com/livekit/livekit / contextWithToken

Function contextWithToken

test/integration_helpers.go:104–112  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

102}
103
104func contextWithToken(token string) context.Context {
105 header := make(http.Header)
106 testclient.SetAuthorizationToken(header, token)
107 tctx, err := twirp.WithHTTPRequestHeaders(context.Background(), header)
108 if err != nil {
109 panic(err)
110 }
111 return tctx
112}
113
114func waitForServerToStart(s *service.LivekitServer) {
115 // wait till ready

Callers 15

TestAgentNamespacesFunction · 0.85
scenarioJoinClosedRoomFunction · 0.85
closeNonRTCRoomFunction · 0.85
roomServiceListRoomFunction · 0.85
TestMultiNodeRoutingFunction · 0.85
TestAutoCreateFunction · 0.85

Calls

no outgoing calls