90
// WithExtractors returns a new interceptor with additional extractors prepended.
91
// The new extractors will be tried before the existing ones.
92
>
func (i *RoutingKeyInterceptor) WithExtractors(extractors ...RoutingKeyExtractorFunc) *RoutingKeyInterceptor {
routing_key_interceptor.go
93
>
return &RoutingKeyInterceptor{
94
>
extractors: append(extractors, i.extractors...),
95
>
logger: i.logger,
96
>
}
97
>
}
98
99
var _ grpc.UnaryServerInterceptor = (*RoutingKeyInterceptor)(nil).Intercept