MCPcopy
hub / github.com/gofr-dev/gofr / AddGRPCServerStreamInterceptors

Method AddGRPCServerStreamInterceptors

pkg/gofr/grpc.go:79–87  ·  view source on GitHub ↗
(interceptors ...grpc.StreamServerInterceptor)

Source from the content-addressed store, hash-verified

77}
78
79func (a *App) AddGRPCServerStreamInterceptors(interceptors ...grpc.StreamServerInterceptor) {
80 if len(interceptors) == 0 {
81 a.container.Logger.Debug("no stream interceptors provided")
82 return
83 }
84
85 a.container.Logger.Debugf("adding %d stream interceptors", len(interceptors))
86 a.grpcServer.streamInterceptors = append(a.grpcServer.streamInterceptors, interceptors...)
87}
88
89func newGRPCServer(c *container.Container, port int, cfg config.Config) (*grpcServer, error) {
90 if port <= 0 || port > 65535 {

Callers

nothing calls this directly

Calls 3

appendFunction · 0.85
DebugMethod · 0.65
DebugfMethod · 0.65

Tested by

no test coverage detected