MCPcopy Create free account
hub / github.com/google/go-cloud / run

Method run

samples/order/processor.go:52–58  ·  view source on GitHub ↗

run handles requests until the context is done or there is a fatal error.

(ctx context.Context)

Source from the content-addressed store, hash-verified

50
51// run handles requests until the context is done or there is a fatal error.
52func (p *processor) run(ctx context.Context) error {
53 for {
54 if err := p.handleRequest(ctx); err != nil {
55 return err
56 }
57 }
58}
59
60// handleRequest handles one image-processing request.
61// A non-nil error from handleRequest will end request processing.

Callers

nothing calls this directly

Calls 1

handleRequestMethod · 0.95

Tested by

no test coverage detected