MCPcopy Index your code
hub / github.com/modelcontextprotocol/go-sdk / Open

Method Open

mcp/event.go:168–168  ·  view source on GitHub ↗

Open is called when a new stream is created. It may be used to ensure that the underlying data structure for the stream is initialized, making it ready to store and replay event streams.

(_ context.Context, sessionID, streamID string)

Source from the content-addressed store, hash-verified

166 // the underlying data structure for the stream is initialized, making it
167 // ready to store and replay event streams.
168 Open(_ context.Context, sessionID, streamID string) error
169
170 // Append appends data for an outgoing event to given stream, which is part of the
171 // given session.

Callers 2

newStreamMethod · 0.65
withFileFunction · 0.65

Implementers 1

MemoryEventStoremcp/event.go

Calls

no outgoing calls

Tested by

no test coverage detected