MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / runGateway

Function runGateway

examples/internal/integration/main_test.go:24–34  ·  view source on GitHub ↗
(ctx context.Context, addr string, opts ...gwruntime.ServeMuxOption)

Source from the content-addressed store, hash-verified

22)
23
24func runGateway(ctx context.Context, addr string, opts ...gwruntime.ServeMuxOption) error {
25 return gateway.Run(ctx, gateway.Options{
26 Addr: addr,
27 GRPCServer: gateway.Endpoint{
28 Network: *network,
29 Addr: *endpoint,
30 },
31 OpenAPIDir: *openAPIDir,
32 Mux: opts,
33 })
34}
35
36func waitForGateway(ctx context.Context, port uint16) error {
37 ch := time.After(10 * time.Second)

Callers 5

testResponseStringsFunction · 0.85
TestNonStandardNamesFunction · 0.85
runServersFunction · 0.85

Calls 1

RunFunction · 0.92

Tested by

no test coverage detected