MCPcopy Create free account
hub / github.com/cli/cli / OpenStream

Method OpenStream

pkg/cmd/event/client/client.go:57–57  ·  view source on GitHub ↗

OpenStream opens the server-sent events stream of the subscription with the given ID. The caller must close the returned body. The stream is live only: events published while no stream is open are not delivered.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

55 // OpenStream opens the server-sent events stream of the subscription with the given ID. The caller must close
56 // the returned body. The stream is live only: events published while no stream is open are not delivered.
57 OpenStream(ctx context.Context, id string) (io.ReadCloser, error)
58}
59
60type eventClient struct {

Callers 3

TestClientErrorsFunction · 0.65
TestOpenStreamFunction · 0.65
listenMethod · 0.65

Implementers 2

EventClientMockpkg/cmd/event/client/client_mock.go
eventClientpkg/cmd/event/client/client.go

Calls

no outgoing calls

Tested by 2

TestClientErrorsFunction · 0.52
TestOpenStreamFunction · 0.52