MCPcopy
hub / github.com/iron-io/functions / ContainerIO

Interface ContainerIO

api/runner/protocol/factory.go:17–20  ·  view source on GitHub ↗

ContainerIO defines the interface used to talk to a hot function. Internally, a protocol must know when to alternate between stdin and stdout. It returns any protocol error, if present.

Source from the content-addressed store, hash-verified

15// Internally, a protocol must know when to alternate between stdin and stdout.
16// It returns any protocol error, if present.
17type ContainerIO interface {
18 IsStreamable() bool
19 Dispatch(ctx context.Context, t task.Request) error
20}
21
22// Protocol defines all protocols that operates a ContainerIO.
23type Protocol string

Callers 3

getPipeMethod · 0.65
IsStreamableFunction · 0.65
serveMethod · 0.65

Implementers 2

HTTPProtocolapi/runner/protocol/http.go
DefaultProtocolapi/runner/protocol/default.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…