MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / Empty

Method Empty

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

Empty reports whether the Event is empty.

()

Source from the content-addressed store, hash-verified

37
38// Empty reports whether the Event is empty.
39func (e Event) Empty() bool {
40 return e.Name == "" && e.ID == "" && len(e.Data) == 0 && e.Retry == ""
41}
42
43// writeEvent writes the event to w, and flushes.
44func writeEvent(w http.ResponseWriter, evt Event) (int, error) {

Callers 1

scanEventsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected