MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / RegisterSession

Method RegisterSession

datagramsession/manager.go:38–38  ·  view source on GitHub ↗

RegisterSession starts tracking a session. Caller is responsible for starting the session

(ctx context.Context, sessionID uuid.UUID, dstConn io.ReadWriteCloser)

Source from the content-addressed store, hash-verified

36 Serve(ctx context.Context) error
37 // RegisterSession starts tracking a session. Caller is responsible for starting the session
38 RegisterSession(ctx context.Context, sessionID uuid.UUID, dstConn io.ReadWriteCloser) (*Session, error)
39 // UnregisterSession stops tracking the session and terminates it
40 UnregisterSession(ctx context.Context, sessionID uuid.UUID, message string, byRemote bool) error
41 // UpdateLogger updates the logger used by the Manager

Callers 4

TestManagerServeFunction · 0.95
TestTimeoutFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestManagerServeFunction · 0.76
TestTimeoutFunction · 0.76