MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / Output

Method Output

fs/runtime/grpc/grpc_func.go:301–311  ·  view source on GitHub ↗
(ctx context.Context, e *proto.Event)

Source from the content-addressed store, hash-verified

299}
300
301func (f *FunctionServerImpl) Output(ctx context.Context, e *proto.Event) (*proto.Response, error) {
302 runtime, err := f.getFunctionRuntime(ctx)
303 if err != nil {
304 return nil, err
305 }
306 runtime.log.Debug("received event")
307 runtime.output <- contube.NewRecordImpl([]byte(e.Payload), func() {})
308 return &proto.Response{
309 Status: proto.Response_OK,
310 }, nil
311}
312
313func (f *FunctionServerImpl) PutState(ctx context.Context, req *proto.PutStateRequest) (*proto.Response, error) {
314 runtime, err := f.getFunctionRuntime(ctx)

Callers

nothing calls this directly

Calls 3

getFunctionRuntimeMethod · 0.95
NewRecordImplFunction · 0.92
DebugMethod · 0.80

Tested by

no test coverage detected