MCPcopy Index your code
hub / github.com/authorizerdev/authorizer / startGRPC

Method startGRPC

internal/server/server.go:154–159  ·  view source on GitHub ↗

startGRPC runs the gRPC server until ctx is cancelled. Delegates the TCP listen + graceful-stop dance to grpcsrv.Server.Run; this wrapper exists only to keep all listener startup colocated in server.Run.

(ctx context.Context, addr string)

Source from the content-addressed store, hash-verified

152// listen + graceful-stop dance to grpcsrv.Server.Run; this wrapper exists
153// only to keep all listener startup colocated in server.Run.
154func (s *server) startGRPC(ctx context.Context, addr string) error {
155 // grpcsrv.Server was constructed with its own addr; honour that.
156 // (When we add CLI-driven addr override, this is the place.)
157 _ = addr
158 return s.Dependencies.GRPCServer.Run(ctx)
159}

Callers 1

RunMethod · 0.95

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected