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

Function main

examples/internal/cmd/example-gateway-server/main.go:21–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19)
20
21func main() {
22 flag.Parse()
23
24 ctx := context.Background()
25 opts := gateway.Options{
26 Addr: ":8080",
27 GRPCServer: gateway.Endpoint{
28 Network: *network,
29 Addr: *endpoint,
30 },
31 OpenAPIDir: *openAPIDir,
32 }
33 if err := gateway.Run(ctx, opts); err != nil {
34 grpclog.Fatal(err)
35 }
36}

Callers

nothing calls this directly

Calls 2

RunFunction · 0.92
ParseMethod · 0.65

Tested by

no test coverage detected