SYMBOL INDEX (880 symbols across 90 files) FILE: examples/client/main.go constant component (line 34) | component = "grpc-example" constant httpAddr (line 35) | httpAddr = ":8082" constant targetGRPCAddr (line 36) | targetGRPCAddr = "localhost:8080" function interceptorLogger (line 41) | func interceptorLogger(l *slog.Logger) logging.Logger { function main (line 47) | func main() { FILE: examples/server/main.go constant component (line 40) | component = "grpc-example" constant grpcAddr (line 41) | grpcAddr = ":8080" constant httpAddr (line 42) | httpAddr = ":8081" function interceptorLogger (line 47) | func interceptorLogger(l *slog.Logger) logging.Logger { function main (line 53) | func main() { FILE: interceptors/auth/auth.go type AuthFunc (line 24) | type AuthFunc type ServiceAuthFuncOverride (line 30) | type ServiceAuthFuncOverride interface function UnaryServerInterceptor (line 36) | func UnaryServerInterceptor(authFunc AuthFunc) grpc.UnaryServerIntercept... function StreamServerInterceptor (line 54) | func StreamServerInterceptor(authFunc AuthFunc) grpc.StreamServerInterce... FILE: interceptors/auth/auth_test.go type authedMarker (line 25) | type authedMarker struct function buildDummyAuthFunction (line 34) | func buildDummyAuthFunction(expectedScheme, expectedToken string) func(c... function assertAuthMarkerExists (line 47) | func assertAuthMarkerExists(t *testing.T, ctx context.Context) { type assertingPingService (line 51) | type assertingPingService struct method PingError (line 56) | func (s *assertingPingService) PingError(ctx context.Context, ping *te... method PingList (line 61) | func (s *assertingPingService) PingList(ping *testpb.PingListRequest, ... function ctxWithToken (line 66) | func ctxWithToken(ctx context.Context, scheme, token string) context.Con... function TestAuthTestSuite (line 71) | func TestAuthTestSuite(t *testing.T) { type AuthTestSuite (line 85) | type AuthTestSuite struct method TestUnary_NoAuth (line 89) | func (s *AuthTestSuite) TestUnary_NoAuth() { method TestUnary_BadAuth (line 95) | func (s *AuthTestSuite) TestUnary_BadAuth() { method TestUnary_PassesAuth (line 101) | func (s *AuthTestSuite) TestUnary_PassesAuth() { method TestUnary_PassesWithPerRpcCredentials (line 106) | func (s *AuthTestSuite) TestUnary_PassesWithPerRpcCredentials() { method TestStream_NoAuth (line 113) | func (s *AuthTestSuite) TestStream_NoAuth() { method TestStream_BadAuth (line 121) | func (s *AuthTestSuite) TestStream_BadAuth() { method TestStream_PassesAuth (line 129) | func (s *AuthTestSuite) TestStream_PassesAuth() { method TestStream_PassesWithPerRpcCredentials (line 137) | func (s *AuthTestSuite) TestStream_PassesWithPerRpcCredentials() { type authOverrideTestService (line 147) | type authOverrideTestService struct method AuthFuncOverride (line 152) | func (s *authOverrideTestService) AuthFuncOverride(ctx context.Context... function TestAuthOverrideTestSuite (line 157) | func TestAuthOverrideTestSuite(t *testing.T) { type AuthOverrideTestSuite (line 171) | type AuthOverrideTestSuite struct method TestUnary_PassesAuth (line 175) | func (s *AuthOverrideTestSuite) TestUnary_PassesAuth() { method TestStream_PassesAuth (line 180) | func (s *AuthOverrideTestSuite) TestStream_PassesAuth() { type fakeOAuth2TokenSource (line 189) | type fakeOAuth2TokenSource struct method Token (line 193) | func (ts *fakeOAuth2TokenSource) Token() (*oauth2.Token, error) { FILE: interceptors/auth/examples_test.go type tokenInfoKey (line 18) | type tokenInfoKey struct function parseToken (line 20) | func parseToken(token string) (struct{}, error) { function userClaimFromToken (line 24) | func userClaimFromToken(struct{}) string { function exampleAuthFunc (line 29) | func exampleAuthFunc(ctx context.Context) (context.Context, error) { function Example_serverConfig (line 47) | func Example_serverConfig() { type gRPCServerAuthenticated (line 54) | type gRPCServerAuthenticated struct method Ping (line 59) | func (s *gRPCServerAuthenticated) Ping(_ context.Context, ping *testpb... type gRPCServerUnauthenticated (line 63) | type gRPCServerUnauthenticated struct method Ping (line 68) | func (s *gRPCServerUnauthenticated) Ping(_ context.Context, _ *testpb.... method AuthFuncOverride (line 73) | func (s *gRPCServerUnauthenticated) AuthFuncOverride(ctx context.Conte... function Example_serverConfigWithAuthOverride (line 79) | func Example_serverConfigWithAuthOverride() { FILE: interceptors/auth/metadata.go constant headerAuthorize (line 16) | headerAuthorize = "authorization" function AuthFromMD (line 24) | func AuthFromMD(ctx context.Context, expectedScheme string) (string, err... FILE: interceptors/auth/metadata_test.go function TestAuthFromMD (line 18) | func TestAuthFromMD(t *testing.T) { FILE: interceptors/callmeta.go function splitFullMethodName (line 13) | func splitFullMethodName(fullMethod string) (string, string) { type CallMeta (line 21) | type CallMeta struct method FullMethod (line 47) | func (c CallMeta) FullMethod() string { function NewClientCallMeta (line 29) | func NewClientCallMeta(fullMethod string, streamDesc *grpc.StreamDesc, r... function NewServerCallMeta (line 38) | func NewServerCallMeta(fullMethod string, streamInfo *grpc.StreamServerI... function clientStreamType (line 51) | func clientStreamType(desc *grpc.StreamDesc) GRPCType { function serverStreamType (line 60) | func serverStreamType(info *grpc.StreamServerInfo) GRPCType { FILE: interceptors/client.go function UnaryClientInterceptor (line 18) | func UnaryClientInterceptor(reportable ClientReportable) grpc.UnaryClien... function StreamClientInterceptor (line 32) | func StreamClientInterceptor(reportable ClientReportable) grpc.StreamCli... type monitoredClientStream (line 47) | type monitoredClientStream struct method SendMsg (line 55) | func (s *monitoredClientStream) SendMsg(m any) error { method RecvMsg (line 62) | func (s *monitoredClientStream) RecvMsg(m any) error { FILE: interceptors/client_test.go type mockReport (line 24) | type mockReport struct type mockReportable (line 32) | type mockReportable struct method Equal (line 40) | func (m *mockReportable) Equal(t *testing.T, expected []*mockReport) { method requireOneReportWithRetry (line 77) | func (m *mockReportable) requireOneReportWithRetry(ctx context.Context... method PostCall (line 97) | func (m *mockReportable) PostCall(err error, _ time.Duration) { method PostMsgSend (line 103) | func (m *mockReportable) PostMsgSend(_ any, err error, _ time.Duration) { method PostMsgReceive (line 109) | func (m *mockReportable) PostMsgReceive(_ any, err error, _ time.Durat... method ClientReporter (line 115) | func (m *mockReportable) ClientReporter(ctx context.Context, c CallMet... method ServerReporter (line 121) | func (m *mockReportable) ServerReporter(ctx context.Context, c CallMet... function TestClientInterceptorSuite (line 127) | func TestClientInterceptorSuite(t *testing.T) { type ClientInterceptorTestSuite (line 131) | type ClientInterceptorTestSuite struct method SetupSuite (line 146) | func (s *ClientInterceptorTestSuite) SetupSuite() { method SetupTest (line 173) | func (s *ClientInterceptorTestSuite) SetupTest() { method TearDownSuite (line 185) | func (s *ClientInterceptorTestSuite) TearDownSuite() { method TearDownTest (line 197) | func (s *ClientInterceptorTestSuite) TearDownTest() { method TestUnaryReporting (line 201) | func (s *ClientInterceptorTestSuite) TestUnaryReporting() { method TestStartedListReporting (line 222) | func (s *ClientInterceptorTestSuite) TestStartedListReporting() { method TestListReporting (line 245) | func (s *ClientInterceptorTestSuite) TestListReporting() { method TestBiStreamingReporting (line 292) | func (s *ClientInterceptorTestSuite) TestBiStreamingReporting() { method TestClientStream (line 334) | func (s *ClientInterceptorTestSuite) TestClientStream() { FILE: interceptors/logging/examples/kit/example_test.go function InterceptorLogger (line 18) | func InterceptorLogger(l log.Logger) logging.Logger { function ExampleInterceptorLogger (line 36) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/log/example_test.go function InterceptorLogger (line 18) | func InterceptorLogger(l *log.Logger) logging.Logger { function ExampleInterceptorLogger (line 36) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/logr/example_test.go constant debugVerbosity (line 18) | debugVerbosity = 4 constant infoVerbosity (line 19) | infoVerbosity = 2 constant warnVerbosity (line 20) | warnVerbosity = 1 constant errorVerbosity (line 21) | errorVerbosity = 0 function InterceptorLogger (line 26) | func InterceptorLogger(l logr.Logger) logging.Logger { function ExampleInterceptorLogger (line 44) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/logrus/example_test.go function InterceptorLogger (line 17) | func InterceptorLogger(l logrus.FieldLogger) logging.Logger { function ExampleInterceptorLogger (line 42) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/skip_healthchecks/example_test.go function InterceptorLogger (line 16) | func InterceptorLogger() logging.Logger { function SkipHealthAndReflectionRequests (line 22) | func SkipHealthAndReflectionRequests(_ context.Context, c interceptors.C... function ExampleInterceptorLogger (line 27) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/slog/example_test.go function InterceptorLogger (line 17) | func InterceptorLogger(l *slog.Logger) logging.Logger { function ExampleInterceptorLogger (line 23) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/zap/example_test.go function InterceptorLogger (line 17) | func InterceptorLogger(l *zap.Logger) logging.Logger { function ExampleInterceptorLogger (line 54) | func ExampleInterceptorLogger() { FILE: interceptors/logging/examples/zerolog/example_test.go function InterceptorLogger (line 18) | func InterceptorLogger(l zerolog.Logger) logging.Logger { function ExampleInterceptorLogger (line 37) | func ExampleInterceptorLogger() { FILE: interceptors/logging/interceptors.go type reporter (line 19) | type reporter struct method PostCall (line 31) | func (c *reporter) PostCall(err error, duration time.Duration) { method PostMsgSend (line 55) | func (c *reporter) PostMsgSend(payload any, err error, duration time.D... method PostMsgReceive (line 102) | func (c *reporter) PostMsgReceive(payload any, err error, duration tim... function reportable (line 149) | func reportable(logger Logger, opts *options) interceptors.CommonReporta... function UnaryClientInterceptor (line 193) | func UnaryClientInterceptor(logger Logger, opts ...Option) grpc.UnaryCli... function StreamClientInterceptor (line 201) | func StreamClientInterceptor(logger Logger, opts ...Option) grpc.StreamC... function UnaryServerInterceptor (line 209) | func UnaryServerInterceptor(logger Logger, opts ...Option) grpc.UnarySer... function StreamServerInterceptor (line 217) | func StreamServerInterceptor(logger Logger, opts ...Option) grpc.StreamS... FILE: interceptors/logging/interceptors_test.go type testDisposableFields (line 33) | type testDisposableFields method AssertField (line 35) | func (f testDisposableFields) AssertField(t *testing.T, key, value str... method AssertFieldNotEmpty (line 44) | func (f testDisposableFields) AssertFieldNotEmpty(t *testing.T, key st... method AssertNoMoreTags (line 53) | func (f testDisposableFields) AssertNoMoreTags(t *testing.T) { type LogLine (line 59) | type LogLine struct type LogLines (line 65) | type LogLines method Len (line 67) | func (l LogLines) Len() int { method Less (line 71) | func (l LogLines) Less(i, j int) bool { method Swap (line 93) | func (l LogLines) Swap(i, j int) { type output (line 97) | type output struct method Lines (line 102) | func (o *output) Lines() LogLines { method Append (line 112) | func (o *output) Append(lines ...LogLine) { method Reset (line 119) | func (o *output) Reset() { type mockLogger (line 126) | type mockLogger struct method Log (line 134) | func (l *mockLogger) Log(_ context.Context, lvl logging.Level, msg str... function newMockLogger (line 130) | func newMockLogger() *mockLogger { type baseLoggingSuite (line 157) | type baseLoggingSuite struct method SetupTest (line 162) | func (s *baseLoggingSuite) SetupTest() { function customClientCodeToLevel (line 166) | func customClientCodeToLevel(c codes.Code) logging.Level { type loggingClientServerSuite (line 174) | type loggingClientServerSuite struct method TestPing (line 233) | func (s *loggingClientServerSuite) TestPing() { method TestPingList (line 282) | func (s *loggingClientServerSuite) TestPingList() { method TestPingError_WithCustomLevels (line 332) | func (s *loggingClientServerSuite) TestPingError_WithCustomLevels() { function customFields (line 178) | func customFields(ctx context.Context) logging.Fields { function TestSuite (line 188) | func TestSuite(t *testing.T) { function assertStandardFields (line 225) | func assertStandardFields(t *testing.T, kind string, f testDisposableFie... type loggingCustomDurationSuite (line 400) | type loggingCustomDurationSuite struct method TestPing_HasOverriddenDuration (line 429) | func (s *loggingCustomDurationSuite) TestPing_HasOverriddenDuration() { method TestPingList_HasOverriddenDuration (line 467) | func (s *loggingCustomDurationSuite) TestPingList_HasOverriddenDuratio... function TestCustomDurationSuite (line 404) | func TestCustomDurationSuite(t *testing.T) { type loggingPayloadSuite (line 512) | type loggingPayloadSuite struct method TestPing_LogsBothRequestAndResponse (line 549) | func (s *loggingPayloadSuite) TestPing_LogsBothRequestAndResponse() { method TestPingError_LogsOnlyRequestsOnError (line 558) | func (s *loggingPayloadSuite) TestPingError_LogsOnlyRequestsOnError() { method TestPingStream_LogsAllRequestsAndResponses (line 577) | func (s *loggingPayloadSuite) TestPingStream_LogsAllRequestsAndRespons... method assertPayloadLogLinesForMessage (line 603) | func (s *loggingPayloadSuite) assertPayloadLogLinesForMessage(lines Lo... function TestPayloadSuite (line 516) | func TestPayloadSuite(t *testing.T) { type loggingCustomGrpcLogFieldsSuite (line 670) | type loggingCustomGrpcLogFieldsSuite struct method TestCustomGrpcLogFieldsWithPing (line 699) | func (s *loggingCustomGrpcLogFieldsSuite) TestCustomGrpcLogFieldsWithP... method TestCustomGrpcLogFieldsWithPingList (line 753) | func (s *loggingCustomGrpcLogFieldsSuite) TestCustomGrpcLogFieldsWithP... function TestCustomGrpcLogFieldsSuite (line 674) | func TestCustomGrpcLogFieldsSuite(t *testing.T) { function waitUntil (line 814) | func waitUntil(interval time.Duration, stopc <-chan struct{}, f func() e... FILE: interceptors/logging/logging.go type fieldsCtxMarker (line 25) | type fieldsCtxMarker struct type fieldsCtxValue (line 26) | type fieldsCtxValue struct function newCommonFields (line 34) | func newCommonFields(kind string, c interceptors.CallMeta) Fields { function disableCommonLoggingFields (line 51) | func disableCommonLoggingFields(kind string, c interceptors.CallMeta, di... type Fields (line 61) | type Fields method Iterator (line 66) | func (f Fields) Iterator() *iter { method Delete (line 97) | func (f *Fields) Delete(key string) { method WithUnique (line 111) | func (f Fields) WithUnique(add Fields) Fields { method AppendUnique (line 140) | func (f Fields) AppendUnique(add Fields) Fields { type iter (line 71) | type iter struct method Next (line 76) | func (i *iter) Next() bool { method At (line 85) | func (i *iter) At() (k string, v any) { function ExtractFields (line 166) | func ExtractFields(ctx context.Context) Fields { function InjectFields (line 182) | func InjectFields(ctx context.Context, f Fields) context.Context { function InjectLogField (line 187) | func InjectLogField(ctx context.Context, key string, val any) context.Co... function AddFields (line 198) | func AddFields(ctx context.Context, f Fields) { type Logger (line 212) | type Logger interface type LoggerFunc (line 217) | type LoggerFunc method Log (line 219) | func (f LoggerFunc) Log(ctx context.Context, level Level, msg string, ... FILE: interceptors/logging/logging_test.go function TestFieldsInjectExtractFromContext (line 13) | func TestFieldsInjectExtractFromContext(t *testing.T) { function TestFieldsDelete (line 43) | func TestFieldsDelete(t *testing.T) { function TestAddFields (line 53) | func TestAddFields(t *testing.T) { FILE: interceptors/logging/options.go type LoggableEvent (line 17) | type LoggableEvent constant StartCall (line 21) | StartCall LoggableEvent = iota constant FinishCall (line 23) | FinishCall constant PayloadReceived (line 28) | PayloadReceived constant PayloadSent (line 33) | PayloadSent function has (line 36) | func has(events []LoggableEvent, event LoggableEvent) bool { type options (line 55) | type options struct type Option (line 66) | type Option function evaluateServerOpt (line 68) | func evaluateServerOpt(opts []Option) *options { function evaluateClientOpt (line 78) | func evaluateClientOpt(opts []Option) *options { type DurationToFields (line 89) | type DurationToFields type ErrorToFields (line 92) | type ErrorToFields type ErrorToCode (line 96) | type ErrorToCode function DefaultErrorToCode (line 98) | func DefaultErrorToCode(err error) codes.Code { type CodeToLevel (line 103) | type CodeToLevel function DefaultServerCodeToLevel (line 106) | func DefaultServerCodeToLevel(code codes.Code) Level { function DefaultClientCodeToLevel (line 124) | func DefaultClientCodeToLevel(code codes.Code) Level { type fieldsFromCtxFn (line 139) | type fieldsFromCtxFn type fieldsFromCtxCallMetaFn (line 140) | type fieldsFromCtxCallMetaFn function WithFieldsFromContext (line 148) | func WithFieldsFromContext(f fieldsFromCtxFn) Option { function WithFieldsFromContextAndCallMeta (line 161) | func WithFieldsFromContextAndCallMeta(f fieldsFromCtxCallMetaFn) Option { function WithLogOnEvents (line 168) | func WithLogOnEvents(events ...LoggableEvent) Option { function WithErrorFields (line 175) | func WithErrorFields(f ErrorToFields) Option { function WithLevels (line 182) | func WithLevels(f CodeToLevel) Option { function WithCodes (line 189) | func WithCodes(f ErrorToCode) Option { function WithDurationField (line 196) | func WithDurationField(f DurationToFields) Option { function DurationToTimeMillisFields (line 206) | func DurationToTimeMillisFields(duration time.Duration) Fields { function DurationToDurationField (line 212) | func DurationToDurationField(duration time.Duration) Fields { function durationToMilliseconds (line 216) | func durationToMilliseconds(duration time.Duration) float32 { function WithTimestampFormat (line 221) | func WithTimestampFormat(format string) Option { function WithDisableLoggingFields (line 236) | func WithDisableLoggingFields(disableGrpcLogFields ...string) Option { FILE: interceptors/logging/slog.go type Level (line 14) | type Level constant LevelDebug (line 42) | LevelDebug Level = -4 constant LevelInfo (line 43) | LevelInfo Level = 0 constant LevelWarn (line 44) | LevelWarn Level = 4 constant LevelError (line 45) | LevelError Level = 8 FILE: interceptors/protovalidate/example_stream_test.go type StreamService (line 15) | type StreamService struct method SendStream (line 19) | func (s *StreamService) SendStream(_ *testvalidatev1.SendStreamRequest... function ExampleStreamServerInterceptor (line 23) | func ExampleStreamServerInterceptor() { FILE: interceptors/protovalidate/example_unary_test.go type UnaryService (line 16) | type UnaryService struct method Send (line 20) | func (s *UnaryService) Send(_ context.Context, _ *testvalidatev1.SendR... function ExampleUnaryServerInterceptor (line 24) | func ExampleUnaryServerInterceptor() { FILE: interceptors/protovalidate/options.go type options (line 15) | type options struct method shouldIgnoreMessage (line 46) | func (o *options) shouldIgnoreMessage(fqn protoreflect.FullName) bool { type Option (line 20) | type Option function evaluateOpts (line 22) | func evaluateOpts(opts []Option) *options { function WithIgnoreMessages (line 35) | func WithIgnoreMessages(msgs ...protoreflect.MessageType) Option { FILE: interceptors/protovalidate/protovalidate.go function UnaryServerInterceptor (line 19) | func UnaryServerInterceptor(validator protovalidate.Validator, opts ...O... function StreamServerInterceptor (line 37) | func StreamServerInterceptor(validator protovalidate.Validator, opts ...... type wrappedServerStream (line 54) | type wrappedServerStream struct method RecvMsg (line 61) | func (w *wrappedServerStream) RecvMsg(m interface{}) error { function validateMsg (line 68) | func validateMsg(m interface{}, validator protovalidate.Validator, opts ... FILE: interceptors/protovalidate/protovalidate_test.go function TestUnaryServerInterceptor (line 29) | func TestUnaryServerInterceptor(t *testing.T) { type server (line 94) | type server struct method SendStream (line 100) | func (g *server) SendStream( constant bufSize (line 112) | bufSize = 1024 * 1024 function startGrpcServer (line 114) | func startGrpcServer(t *testing.T, called *bool, ignoreMessages ...proto... function TestStreamServerInterceptor (line 156) | func TestStreamServerInterceptor(t *testing.T) { function assertEqualViolation (line 227) | func assertEqualViolation(tb testing.TB, want *validate.Violation, got e... FILE: interceptors/ratelimit/examples_test.go type alwaysPassLimiter (line 15) | type alwaysPassLimiter struct method Limit (line 17) | func (*alwaysPassLimiter) Limit(_ context.Context) error { function ExampleUnaryServerInterceptor (line 34) | func ExampleUnaryServerInterceptor() { function ExampleStreamServerInterceptor (line 46) | func ExampleStreamServerInterceptor() { function ExampleUnaryClientInterceptor (line 58) | func ExampleUnaryClientInterceptor() { function ExampleStreamClientInterceptor (line 71) | func ExampleStreamClientInterceptor() { FILE: interceptors/ratelimit/ratelimit.go type Limiter (line 17) | type Limiter interface function UnaryServerInterceptor (line 22) | func UnaryServerInterceptor(limiter Limiter) grpc.UnaryServerInterceptor { function StreamServerInterceptor (line 32) | func StreamServerInterceptor(limiter Limiter) grpc.StreamServerIntercept... function UnaryClientInterceptor (line 45) | func UnaryClientInterceptor(limiter Limiter) grpc.UnaryClientInterceptor { function StreamClientInterceptor (line 60) | func StreamClientInterceptor(limiter Limiter) grpc.StreamClientIntercept... FILE: interceptors/ratelimit/ratelimit_test.go constant errMsgFake (line 18) | errMsgFake = "fake error" type ctxKey (line 20) | type ctxKey type mockGRPCServerStream (line 24) | type mockGRPCServerStream struct method Context (line 30) | func (m *mockGRPCServerStream) Context() context.Context { type mockContextBasedLimiter (line 34) | type mockContextBasedLimiter struct method Limit (line 36) | func (*mockContextBasedLimiter) Limit(ctx context.Context) error { function TestUnaryServerInterceptor_RateLimitPass (line 46) | func TestUnaryServerInterceptor_RateLimitPass(t *testing.T) { function TestStreamServerInterceptor_RateLimitPass (line 62) | func TestStreamServerInterceptor_RateLimitPass(t *testing.T) { function TestUnaryServerInterceptor_RateLimitFail (line 77) | func TestUnaryServerInterceptor_RateLimitFail(t *testing.T) { function TestStreamServerInterceptor_RateLimitFail (line 102) | func TestStreamServerInterceptor_RateLimitFail(t *testing.T) { function TestUnaryClientInterceptor_RateLimitPass (line 127) | func TestUnaryClientInterceptor_RateLimitPass(t *testing.T) { function TestStreamClientInterceptor_RateLimitPass (line 139) | func TestStreamClientInterceptor_RateLimitPass(t *testing.T) { function TestUnaryClientInterceptor_RateLimitFail (line 151) | func TestUnaryClientInterceptor_RateLimitFail(t *testing.T) { function TestStreamClientInterceptor_RateLimitFail (line 172) | func TestStreamClientInterceptor_RateLimitFail(t *testing.T) { FILE: interceptors/realip/examples_test.go function ExampleUnaryServerInterceptorOpts (line 14) | func ExampleUnaryServerInterceptorOpts() { function ExampleStreamServerInterceptorOpts (line 38) | func ExampleStreamServerInterceptorOpts() { FILE: interceptors/realip/options.go type options (line 9) | type options struct type Option (line 23) | type Option function evaluateOpts (line 25) | func evaluateOpts(opts []Option) *options { function WithTrustedPeers (line 34) | func WithTrustedPeers(peers []netip.Prefix) Option { function WithTrustedProxies (line 41) | func WithTrustedProxies(proxies []netip.Prefix) Option { function WithTrustedProxiesCount (line 48) | func WithTrustedProxiesCount(count uint) Option { function WithHeaders (line 55) | func WithHeaders(headers []string) Option { FILE: interceptors/realip/realip.go constant XRealIp (line 22) | XRealIp = "X-Real-IP" constant XForwardedFor (line 23) | XForwardedFor = "X-Forwarded-For" constant TrueClientIp (line 24) | TrueClientIp = "True-Client-IP" type realipKey (line 29) | type realipKey struct function FromContext (line 33) | func FromContext(ctx context.Context) (netip.Addr, bool) { function remotePeer (line 38) | func remotePeer(ctx context.Context) net.Addr { function ipInNets (line 46) | func ipInNets(ip netip.Addr, nets []netip.Prefix) bool { function getHeader (line 55) | func getHeader(ctx context.Context, key string) string { function ipFromXForwardedFoR (line 65) | func ipFromXForwardedFoR(trustedProxies []netip.Prefix, ips []string, id... function ipFromHeaders (line 79) | func ipFromHeaders(ctx context.Context, headers []string, trustedProxies... function getRemoteIP (line 99) | func getRemoteIP(ctx context.Context, trustedPeers, trustedProxies []net... type serverStream (line 121) | type serverStream struct method Context (line 126) | func (s *serverStream) Context() context.Context { function UnaryServerInterceptor (line 134) | func UnaryServerInterceptor(trustedPeers []netip.Prefix, headers []strin... function StreamServerInterceptor (line 142) | func StreamServerInterceptor(trustedPeers []netip.Prefix, headers []stri... function UnaryServerInterceptorOpts (line 150) | func UnaryServerInterceptorOpts(opts ...Option) grpc.UnaryServerIntercep... function StreamServerInterceptorOpts (line 165) | func StreamServerInterceptorOpts(opts ...Option) grpc.StreamServerInterc... FILE: interceptors/realip/realip_test.go function localhostPeer (line 40) | func localhostPeer() *peer.Peer { function localhost6Peer (line 48) | func localhost6Peer() *peer.Peer { function publicPeer (line 56) | func publicPeer() *peer.Peer { function privatePeer (line 64) | func privatePeer() *peer.Peer { function private6Peer (line 72) | func private6Peer() *peer.Peer { type testCase (line 80) | type testCase struct method optsFromTestCase (line 90) | func (c *testCase) optsFromTestCase() []Option { function testUnaryServerInterceptor (line 99) | func testUnaryServerInterceptor(t *testing.T, c *testCase) { function testStreamServerInterceptor (line 124) | func testStreamServerInterceptor(t *testing.T, c *testCase) { function TestInterceptor (line 148) | func TestInterceptor(t *testing.T) { FILE: interceptors/recovery/examples_test.go function Example_initialization (line 19) | func Example_initialization() { FILE: interceptors/recovery/interceptors.go type RecoveryHandlerFunc (line 18) | type RecoveryHandlerFunc type RecoveryHandlerFuncContext (line 22) | type RecoveryHandlerFuncContext function UnaryServerInterceptor (line 25) | func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor { function StreamServerInterceptor (line 39) | func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor { function recoverFrom (line 52) | func recoverFrom(ctx context.Context, p any, r RecoveryHandlerFuncContex... type PanicError (line 61) | type PanicError struct method Error (line 66) | func (e *PanicError) Error() string { FILE: interceptors/recovery/interceptors_test.go type recoveryAssertService (line 21) | type recoveryAssertService struct method Ping (line 25) | func (s *recoveryAssertService) Ping(ctx context.Context, ping *testpb... method PingList (line 32) | func (s *recoveryAssertService) PingList(ping *testpb.PingListRequest,... function TestRecoverySuite (line 39) | func TestRecoverySuite(t *testing.T) { type RecoverySuite (line 54) | type RecoverySuite struct method TestUnary_SuccessfulRequest (line 58) | func (s *RecoverySuite) TestUnary_SuccessfulRequest() { method TestUnary_PanickingRequest (line 63) | func (s *RecoverySuite) TestUnary_PanickingRequest() { method TestStream_SuccessfulReceive (line 71) | func (s *RecoverySuite) TestStream_SuccessfulReceive() { method TestStream_PanickingReceive (line 79) | func (s *RecoverySuite) TestStream_PanickingReceive() { function TestRecoveryOverrideSuite (line 89) | func TestRecoveryOverrideSuite(t *testing.T) { type RecoveryOverrideSuite (line 109) | type RecoveryOverrideSuite struct method TestUnary_SuccessfulRequest (line 113) | func (s *RecoveryOverrideSuite) TestUnary_SuccessfulRequest() { method TestUnary_PanickingRequest (line 118) | func (s *RecoveryOverrideSuite) TestUnary_PanickingRequest() { method TestStream_SuccessfulReceive (line 125) | func (s *RecoveryOverrideSuite) TestStream_SuccessfulReceive() { method TestStream_PanickingReceive (line 133) | func (s *RecoveryOverrideSuite) TestStream_PanickingReceive() { FILE: interceptors/recovery/options.go type options (line 15) | type options struct function evaluateOptions (line 19) | func evaluateOptions(opts []Option) *options { type Option (line 28) | type Option function WithRecoveryHandler (line 31) | func WithRecoveryHandler(f RecoveryHandlerFunc) Option { function WithRecoveryHandlerContext (line 40) | func WithRecoveryHandlerContext(f RecoveryHandlerFuncContext) Option { FILE: interceptors/reporter.go type GRPCType (line 13) | type GRPCType constant Unary (line 16) | Unary GRPCType = "unary" constant ClientStream (line 17) | ClientStream GRPCType = "client_stream" constant ServerStream (line 18) | ServerStream GRPCType = "server_stream" constant BidiStream (line 19) | BidiStream GRPCType = "bidi_stream" type ClientReportable (line 29) | type ClientReportable interface type ServerReportable (line 33) | type ServerReportable interface type CommonReportableFunc (line 38) | type CommonReportableFunc method ClientReporter (line 40) | func (f CommonReportableFunc) ClientReporter(ctx context.Context, c Ca... method ServerReporter (line 44) | func (f CommonReportableFunc) ServerReporter(ctx context.Context, c Ca... type Reporter (line 48) | type Reporter interface type NoopReporter (line 56) | type NoopReporter struct method PostCall (line 58) | func (NoopReporter) PostCall(error, time.Duration) {} method PostMsgSend (line 59) | func (NoopReporter) PostMsgSend(any, error, time.Duration) {} method PostMsgReceive (line 60) | func (NoopReporter) PostMsgReceive(any, error, time.Duration) {} type report (line 62) | type report struct function newReport (line 67) | func newReport(callMeta CallMeta) report { FILE: interceptors/retry/backoff.go function BackoffLinear (line 14) | func BackoffLinear(waitBetween time.Duration) BackoffFunc { function jitterUp (line 23) | func jitterUp(duration time.Duration, jitter float64) time.Duration { function exponentBase2 (line 30) | func exponentBase2(a uint) uint64 { function BackoffLinearWithJitter (line 42) | func BackoffLinearWithJitter(waitBetween time.Duration, jitterFraction f... function BackoffExponential (line 51) | func BackoffExponential(scalar time.Duration) BackoffFunc { function BackoffExponentialWithJitter (line 59) | func BackoffExponentialWithJitter(scalar time.Duration, jitterFraction f... function BackoffExponentialWithJitterBounded (line 71) | func BackoffExponentialWithJitterBounded(scalar time.Duration, jitterFra... FILE: interceptors/retry/backoff_test.go function TestBackoffExponentialWithJitter (line 11) | func TestBackoffExponentialWithJitter(t *testing.T) { function TestBackoffExponentialWithJitterBounded (line 24) | func TestBackoffExponentialWithJitterBounded(t *testing.T) { FILE: interceptors/retry/examples_test.go function Example_initialization (line 20) | func Example_initialization() { function Example_initializationWithOptions (line 28) | func Example_initializationWithOptions() { function Example_initializationWithExponentialBackoff (line 42) | func Example_initializationWithExponentialBackoff() { function Example_simpleCall (line 53) | func Example_simpleCall() { function ExampleWithPerRetryTimeout (line 79) | func ExampleWithPerRetryTimeout() { function scaleDuration (line 92) | func scaleDuration(d time.Duration, factor float64) time.Duration { FILE: interceptors/retry/options.go type BackoffFunc (line 40) | type BackoffFunc type OnRetryCallback (line 43) | type OnRetryCallback type RetriableFunc (line 46) | type RetriableFunc function Disable (line 51) | func Disable() CallOption { function WithMax (line 56) | func WithMax(maxRetries uint) CallOption { function WithBackoff (line 63) | func WithBackoff(bf BackoffFunc) CallOption { function WithOnRetryCallback (line 72) | func WithOnRetryCallback(fn OnRetryCallback) CallOption { function WithCodes (line 83) | func WithCodes(retryCodes ...codes.Code) CallOption { function WithPerRetryTimeout (line 101) | func WithPerRetryTimeout(timeout time.Duration) CallOption { function WithRetriable (line 108) | func WithRetriable(retriableFunc RetriableFunc) CallOption { type options (line 114) | type options struct type CallOption (line 124) | type CallOption struct function reuseOrNewWithCallOptions (line 129) | func reuseOrNewWithCallOptions(opt *options, callOptions []CallOption) *... function filterCallOptions (line 141) | func filterCallOptions(callOptions []grpc.CallOption) (grpcOptions []grp... function newRetriableFuncForCodes (line 153) | func newRetriableFuncForCodes(codes []codes.Code) func(err error) bool { FILE: interceptors/retry/retry.go constant AttemptMetadataKey (line 22) | AttemptMetadataKey = "x-retry-attempt" function UnaryClientInterceptor (line 29) | func UnaryClientInterceptor(optFuncs ...CallOption) grpc.UnaryClientInte... function StreamClientInterceptor (line 83) | func StreamClientInterceptor(optFuncs ...CallOption) grpc.StreamClientIn... type serverStreamingRetryingStream (line 141) | type serverStreamingRetryingStream struct method setStream (line 151) | func (s *serverStreamingRetryingStream) setStream(clientStream grpc.Cl... method getStream (line 157) | func (s *serverStreamingRetryingStream) getStream() grpc.ClientStream { method SendMsg (line 163) | func (s *serverStreamingRetryingStream) SendMsg(m any) error { method CloseSend (line 170) | func (s *serverStreamingRetryingStream) CloseSend() error { method Header (line 177) | func (s *serverStreamingRetryingStream) Header() (grpcMetadata.MD, err... method Trailer (line 181) | func (s *serverStreamingRetryingStream) Trailer() grpcMetadata.MD { method RecvMsg (line 185) | func (s *serverStreamingRetryingStream) RecvMsg(m any) error { method receiveMsgAndIndicateRetry (line 215) | func (s *serverStreamingRetryingStream) receiveMsgAndIndicateRetry(m a... method reestablishStreamAndResendBuffer (line 234) | func (s *serverStreamingRetryingStream) reestablishStreamAndResendBuff... function waitRetryBackoff (line 256) | func waitRetryBackoff(attempt uint, parentCtx context.Context, callOpts ... function isRetriable (line 276) | func isRetriable(err error, callOpts *options) bool { function isContextError (line 283) | func isContextError(err error) bool { function perCallContext (line 288) | func perCallContext(parentCtx context.Context, callOpts *options, attemp... function perStreamContext (line 302) | func perStreamContext(parentCtx context.Context, callOpts *options, atte... function contextErrToGrpcErr (line 311) | func contextErrToGrpcErr(err error) error { function logTrace (line 322) | func logTrace(ctx context.Context, format string, a ...any) { FILE: interceptors/retry/retry_test.go type failingService (line 32) | type failingService struct method resetFailingConfiguration (line 42) | func (s *failingService) resetFailingConfiguration(modulo uint, errorC... method requestCount (line 52) | func (s *failingService) requestCount() uint { method maybeFailRequest (line 58) | func (s *failingService) maybeFailRequest() error { method Ping (line 73) | func (s *failingService) Ping(ctx context.Context, ping *testpb.PingRe... method PingList (line 80) | func (s *failingService) PingList(ping *testpb.PingListRequest, stream... method PingStream (line 87) | func (s *failingService) PingStream(stream testpb.TestService_PingStre... function TestRetrySuite (line 94) | func TestRetrySuite(t *testing.T) { type RetrySuite (line 121) | type RetrySuite struct method SetupTest (line 126) | func (s *RetrySuite) SetupTest() { method TestUnary_FailsOnNonRetriableError (line 130) | func (s *RetrySuite) TestUnary_FailsOnNonRetriableError() { method TestUnary_FailsOnNonRetriableContextError (line 138) | func (s *RetrySuite) TestUnary_FailsOnNonRetriableContextError() { method TestCallOptionsDontPanicWithoutInterceptor (line 146) | func (s *RetrySuite) TestCallOptionsDontPanicWithoutInterceptor() { method TestServerStream_FailsOnNonRetriableError (line 160) | func (s *RetrySuite) TestServerStream_FailsOnNonRetriableError() { method TestUnary_SucceedsOnRetriableError (line 169) | func (s *RetrySuite) TestUnary_SucceedsOnRetriableError() { method TestUnary_OverrideFromDialOpts (line 177) | func (s *RetrySuite) TestUnary_OverrideFromDialOpts() { method TestUnary_OverrideFromDialOpts2 (line 185) | func (s *RetrySuite) TestUnary_OverrideFromDialOpts2() { method TestUnary_OnRetryCallbackCalled (line 195) | func (s *RetrySuite) TestUnary_OnRetryCallbackCalled() { method TestUnary_OnRetryCallbackNotCalledOnNonRetriableError (line 210) | func (s *RetrySuite) TestUnary_OnRetryCallbackNotCalledOnNonRetriableE... method TestServerStream_SucceedsOnRetriableError (line 225) | func (s *RetrySuite) TestServerStream_SucceedsOnRetriableError() { method TestServerStream_OverrideFromContext (line 233) | func (s *RetrySuite) TestServerStream_OverrideFromContext() { method TestServerStream_OverrideFromContext2 (line 241) | func (s *RetrySuite) TestServerStream_OverrideFromContext2() { method TestServerStream_OnRetryCallbackCalled (line 251) | func (s *RetrySuite) TestServerStream_OnRetryCallbackCalled() { method TestServerStream_CallFailsOnOutOfRetries (line 266) | func (s *RetrySuite) TestServerStream_CallFailsOnOutOfRetries() { method TestServerStream_CallFailsOnDeadlineExceeded (line 276) | func (s *RetrySuite) TestServerStream_CallFailsOnDeadlineExceeded() { method TestServerStream_CallRetrySucceeds (line 288) | func (s *RetrySuite) TestServerStream_CallRetrySucceeds() { method assertPingListWasCorrect (line 299) | func (s *RetrySuite) assertPingListWasCorrect(stream testpb.TestServic... type trackedInterceptor (line 316) | type trackedInterceptor struct method UnaryClientInterceptor (line 320) | func (ti *trackedInterceptor) UnaryClientInterceptor(ctx context.Conte... method StreamClientInterceptor (line 325) | func (ti *trackedInterceptor) StreamClientInterceptor(ctx context.Cont... function TestChainedRetrySuite (line 330) | func TestChainedRetrySuite(t *testing.T) { type ChainedRetrySuite (line 359) | type ChainedRetrySuite struct method SetupTest (line 366) | func (s *ChainedRetrySuite) SetupTest() { method TestUnaryWithChainedInterceptors_NoFailure (line 372) | func (s *ChainedRetrySuite) TestUnaryWithChainedInterceptors_NoFailure... method TestUnaryWithChainedInterceptors_WithRetry (line 380) | func (s *ChainedRetrySuite) TestUnaryWithChainedInterceptors_WithRetry... method TestStreamWithChainedInterceptors_NoFailure (line 389) | func (s *ChainedRetrySuite) TestStreamWithChainedInterceptors_NoFailur... method TestStreamWithChainedInterceptors_WithRetry (line 399) | func (s *ChainedRetrySuite) TestStreamWithChainedInterceptors_WithRetr... function TestJitterUp (line 410) | func TestJitterUp(t *testing.T) { type failingClientStream (line 441) | type failingClientStream struct method Header (line 445) | func (s *failingClientStream) Header() (metadata.MD, error) { method Trailer (line 449) | func (s *failingClientStream) Trailer() metadata.MD { method CloseSend (line 453) | func (s *failingClientStream) CloseSend() error { method Context (line 457) | func (s *failingClientStream) Context() context.Context { method SendMsg (line 461) | func (s *failingClientStream) SendMsg(m any) error { method RecvMsg (line 465) | func (s *failingClientStream) RecvMsg(m any) error { function TestStreamClientInterceptorAttemptMetadata (line 469) | func TestStreamClientInterceptorAttemptMetadata(t *testing.T) { FILE: interceptors/retry/trace_notrace.go type notrace (line 17) | type notrace struct method LazyLog (line 19) | func (notrace) LazyLog(x fmt.Stringer, sensitive bool) {} method LazyPrintf (line 20) | func (notrace) LazyPrintf(format string, a ...any) {} method SetError (line 21) | func (notrace) SetError() {} method SetRecycler (line 22) | func (notrace) SetRecycler(f func(any)) {} method SetTraceInfo (line 23) | func (notrace) SetTraceInfo(traceID, spanID uint64) {} method SetMaxEvents (line 24) | func (notrace) SetMaxEvents(m int) {} method Finish (line 25) | func (notrace) Finish() {} function traceFromCtx (line 27) | func traceFromCtx(ctx context.Context) (notrace, bool) { FILE: interceptors/retry/trace_notrace_test.go function Test_traceFromCtx (line 15) | func Test_traceFromCtx(t *testing.T) { FILE: interceptors/retry/trace_withtrace.go function traceFromCtx (line 14) | func traceFromCtx(ctx context.Context) (t.Trace, bool) { FILE: interceptors/retry/trace_withtrace_test.go function Test_traceFromCtx (line 16) | func Test_traceFromCtx(t *testing.T) { FILE: interceptors/selector/selector.go type Matcher (line 14) | type Matcher interface function MatchFunc (line 20) | func MatchFunc(f func(ctx context.Context, callMeta interceptors.CallMet... type funcSelector (line 24) | type funcSelector struct method Match (line 28) | func (s funcSelector) Match(ctx context.Context, callMeta interceptors... function UnaryServerInterceptor (line 34) | func UnaryServerInterceptor(i grpc.UnaryServerInterceptor, matcher Match... function StreamServerInterceptor (line 46) | func StreamServerInterceptor(i grpc.StreamServerInterceptor, matcher Mat... function UnaryClientInterceptor (line 59) | func UnaryClientInterceptor(i grpc.UnaryClientInterceptor, matcher Match... function StreamClientInterceptor (line 72) | func StreamClientInterceptor(i grpc.StreamClientInterceptor, matcher Mat... FILE: interceptors/selector/selector_example_test.go type alwaysPassLimiter (line 21) | type alwaysPassLimiter struct method Limit (line 23) | func (*alwaysPassLimiter) Limit(_ context.Context) error { function healthSkip (line 27) | func healthSkip(_ context.Context, c interceptors.CallMeta) bool { function Example_ratelimit (line 31) | func Example_ratelimit() { type tokenInfoKey (line 43) | type tokenInfoKey struct function parseToken (line 45) | func parseToken(token string) (struct{}, error) { function userClaimFromToken (line 49) | func userClaimFromToken(struct{}) string { function exampleAuthFunc (line 54) | func exampleAuthFunc(ctx context.Context) (context.Context, error) { function loginSkip (line 71) | func loginSkip(_ context.Context, c interceptors.CallMeta) bool { function Example_login (line 75) | func Example_login() { FILE: interceptors/selector/selector_test.go function allow (line 18) | func allow(methods []string) Matcher { type mockGRPCServerStream (line 29) | type mockGRPCServerStream struct method Context (line 35) | func (m *mockGRPCServerStream) Context() context.Context { constant svcMethod (line 39) | svcMethod = "/v1beta1.SomeService/NeedsAuth" function TestUnaryServerInterceptor (line 41) | func TestUnaryServerInterceptor(t *testing.T) { function TestStreamServerInterceptor (line 71) | func TestStreamServerInterceptor(t *testing.T) { function TestAllow (line 101) | func TestAllow(t *testing.T) { FILE: interceptors/server.go function UnaryServerInterceptor (line 16) | func UnaryServerInterceptor(reportable ServerReportable) grpc.UnaryServe... function StreamServerInterceptor (line 31) | func StreamServerInterceptor(reportable ServerReportable) grpc.StreamSer... type monitoredServerStream (line 42) | type monitoredServerStream struct method Context (line 49) | func (s *monitoredServerStream) Context() context.Context { method SendMsg (line 53) | func (s *monitoredServerStream) SendMsg(m any) error { method RecvMsg (line 60) | func (s *monitoredServerStream) RecvMsg(m any) error { FILE: interceptors/server_test.go function TestServerInterceptorSuite (line 23) | func TestServerInterceptorSuite(t *testing.T) { type ServerInterceptorTestSuite (line 27) | type ServerInterceptorTestSuite struct method SetupSuite (line 40) | func (s *ServerInterceptorTestSuite) SetupSuite() { method SetupTest (line 64) | func (s *ServerInterceptorTestSuite) SetupTest() { method TearDownSuite (line 71) | func (s *ServerInterceptorTestSuite) TearDownSuite() { method TearDownTest (line 83) | func (s *ServerInterceptorTestSuite) TearDownTest() { method TestUnaryReporting (line 87) | func (s *ServerInterceptorTestSuite) TestUnaryReporting() { method TestStreamingReports (line 108) | func (s *ServerInterceptorTestSuite) TestStreamingReports() { method TestBiStreamingReporting (line 139) | func (s *ServerInterceptorTestSuite) TestBiStreamingReporting() { FILE: interceptors/timeout/examples_test.go function Example_initialization (line 17) | func Example_initialization() { FILE: interceptors/timeout/timeout.go function UnaryClientInterceptor (line 14) | func UnaryClientInterceptor(timeout time.Duration) grpc.UnaryClientInter... FILE: interceptors/timeout/timeout_test.go type TimeoutTestServiceServer (line 20) | type TimeoutTestServiceServer struct method Ping (line 25) | func (t *TimeoutTestServiceServer) Ping(ctx context.Context, req *test... function TestTimeoutUnaryClientInterceptor (line 32) | func TestTimeoutUnaryClientInterceptor(t *testing.T) { FILE: interceptors/validator/interceptors.go function UnaryServerInterceptor (line 17) | func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor { function UnaryClientInterceptor (line 32) | func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor { function StreamServerInterceptor (line 50) | func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor { type recvWrapper (line 62) | type recvWrapper struct method RecvMsg (line 67) | func (s *recvWrapper) RecvMsg(m any) error { FILE: interceptors/validator/interceptors_test.go type ValidatorTestSuite (line 21) | type ValidatorTestSuite struct method TestValidPasses_Unary (line 25) | func (s *ValidatorTestSuite) TestValidPasses_Unary() { method TestInvalidErrors_Unary (line 30) | func (s *ValidatorTestSuite) TestInvalidErrors_Unary() { method TestValidPasses_ServerStream (line 36) | func (s *ValidatorTestSuite) TestValidPasses_ServerStream() { method TestInvalidErrors_ServerStream (line 63) | func (s *ValidatorTestSuite) TestInvalidErrors_ServerStream() { method TestInvalidErrors_BidiStream (line 71) | func (s *ValidatorTestSuite) TestInvalidErrors_BidiStream() { type ClientValidatorTestSuite (line 48) | type ClientValidatorTestSuite struct method TestValidPasses_Unary (line 52) | func (s *ClientValidatorTestSuite) TestValidPasses_Unary() { method TestInvalidErrors_Unary (line 57) | func (s *ClientValidatorTestSuite) TestInvalidErrors_Unary() { function TestValidatorTestSuite (line 91) | func TestValidatorTestSuite(t *testing.T) { FILE: interceptors/validator/options.go type options (line 10) | type options struct type Option (line 14) | type Option function evaluateOpts (line 16) | func evaluateOpts(opts []Option) *options { type OnValidationErrCallback (line 24) | type OnValidationErrCallback function WithOnValidationErrCallback (line 27) | func WithOnValidationErrCallback(onValidationErrCallback OnValidationErr... function WithFailFast (line 35) | func WithFailFast() Option { FILE: interceptors/validator/validator.go type validateAller (line 15) | type validateAller interface type validator (line 21) | type validator interface type validatorLegacy (line 26) | type validatorLegacy interface function validate (line 30) | func validate(ctx context.Context, reqOrRes interface{}, shouldFailFast ... FILE: interceptors/validator/validator_test.go function TestValidateWrapper (line 15) | func TestValidateWrapper(t *testing.T) { FILE: metadata/metadata.go type MD (line 14) | type MD method Clone (line 44) | func (m MD) Clone(copiedKeys ...string) MD { method ToOutgoing (line 68) | func (m MD) ToOutgoing(ctx context.Context) context.Context { method ToIncoming (line 75) | func (m MD) ToIncoming(ctx context.Context) context.Context { method Get (line 85) | func (m MD) Get(key string) string { method Del (line 100) | func (m MD) Del(key string) MD { method Set (line 111) | func (m MD) Set(key, value string) MD { method Add (line 122) | func (m MD) Add(key, value string) MD { function ExtractIncoming (line 20) | func ExtractIncoming(ctx context.Context) MD { function ExtractOutgoing (line 32) | func ExtractOutgoing(ctx context.Context) MD { FILE: metadata/metadata_test.go type parentKey (line 15) | type parentKey struct function assertRetainsParentContext (line 22) | func assertRetainsParentContext(t *testing.T, ctx context.Context) { function TestNiceMD_Get (line 27) | func TestNiceMD_Get(t *testing.T) { function TestNiceMD_Del (line 34) | func TestNiceMD_Del(t *testing.T) { function TestNiceMD_Add (line 41) | func TestNiceMD_Add(t *testing.T) { function TestNiceMD_Set (line 48) | func TestNiceMD_Set(t *testing.T) { function TestNiceMD_Clone (line 55) | func TestNiceMD_Clone(t *testing.T) { function TestNiceMD_ToOutgoing (line 70) | func TestNiceMD_ToOutgoing(t *testing.T) { function TestNiceMD_ToIncoming (line 80) | func TestNiceMD_ToIncoming(t *testing.T) { FILE: metadata/single_key.go constant binHdrSuffix (line 12) | binHdrSuffix = "-bin" function encodeKeyValue (line 15) | func encodeKeyValue(k, v string) (string, string) { FILE: providers/prometheus/client_metrics.go type ClientMetrics (line 14) | type ClientMetrics struct method Describe (line 86) | func (m *ClientMetrics) Describe(ch chan<- *prometheus.Desc) { method Collect (line 105) | func (m *ClientMetrics) Collect(ch chan<- prometheus.Metric) { method UnaryClientInterceptor (line 122) | func (m *ClientMetrics) UnaryClientInterceptor(opts ...Option) grpc.Un... method StreamClientInterceptor (line 130) | func (m *ClientMetrics) StreamClientInterceptor(opts ...Option) grpc.S... function NewClientMetrics (line 34) | func NewClientMetrics(opts ...ClientMetricsOption) *ClientMetrics { FILE: providers/prometheus/client_options.go type clientMetricsConfig (line 10) | type clientMetricsConfig struct method apply (line 24) | func (c *clientMetricsConfig) apply(opts []ClientMetricsOption) { type ClientMetricsOption (line 22) | type ClientMetricsOption function WithClientCounterOptions (line 30) | func WithClientCounterOptions(opts ...CounterOption) ClientMetricsOption { function WithClientHandlingTimeHistogram (line 38) | func WithClientHandlingTimeHistogram(opts ...HistogramOption) ClientMetr... function WithClientStreamRecvHistogram (line 58) | func WithClientStreamRecvHistogram(opts ...HistogramOption) ClientMetric... function WithClientStreamSendHistogram (line 78) | func WithClientStreamSendHistogram(opts ...HistogramOption) ClientMetric... function WithClientContextLabels (line 99) | func WithClientContextLabels(labelNames ...string) ClientMetricsOption { FILE: providers/prometheus/client_test.go function TestClientInterceptorSuite (line 18) | func TestClientInterceptorSuite(t *testing.T) { type ClientInterceptorTestSuite (line 32) | type ClientInterceptorTestSuite struct method SetupTest (line 37) | func (s *ClientInterceptorTestSuite) SetupTest() { method TestUnaryIncrementsMetrics (line 45) | func (s *ClientInterceptorTestSuite) TestUnaryIncrementsMetrics() { method TestStartedStreamingIncrementsStarted (line 60) | func (s *ClientInterceptorTestSuite) TestStartedStreamingIncrementsSta... method TestStreamingIncrementsMetrics (line 70) | func (s *ClientInterceptorTestSuite) TestStreamingIncrementsMetrics() { method TestWithSubsystem (line 104) | func (s *ClientInterceptorTestSuite) TestWithSubsystem() { method TestWithNamespace (line 118) | func (s *ClientInterceptorTestSuite) TestWithNamespace() { FILE: providers/prometheus/constants.go type grpcType (line 6) | type grpcType constant Unary (line 10) | Unary grpcType = "unary" constant ClientStream (line 11) | ClientStream grpcType = "client_stream" constant ServerStream (line 12) | ServerStream grpcType = "server_stream" constant BidiStream (line 13) | BidiStream grpcType = "bidi_stream" type Kind (line 17) | type Kind constant KindClient (line 21) | KindClient Kind = "client" constant KindServer (line 22) | KindServer Kind = "server" FILE: providers/prometheus/context_labels_test.go function TestServerContextLabels (line 19) | func TestServerContextLabels(t *testing.T) { function TestClientContextLabels (line 95) | func TestClientContextLabels(t *testing.T) { function TestServerContextLabelsWithMissingValues (line 171) | func TestServerContextLabelsWithMissingValues(t *testing.T) { function TestClientContextLabelsWithMissingValues (line 247) | func TestClientContextLabelsWithMissingValues(t *testing.T) { function TestServerContextLabelsWithHistogram (line 323) | func TestServerContextLabelsWithHistogram(t *testing.T) { function TestClientContextLabelsWithHistogram (line 397) | func TestClientContextLabelsWithHistogram(t *testing.T) { FILE: providers/prometheus/options.go function FromError (line 14) | func FromError(err error) *status.Status { type CounterOption (line 24) | type CounterOption type counterOptions (line 26) | type counterOptions method apply (line 28) | func (co counterOptions) apply(o prometheus.CounterOpts) prometheus.Co... function WithConstLabels (line 36) | func WithConstLabels(labels prometheus.Labels) CounterOption { function WithSubsystem (line 43) | func WithSubsystem(subsystem string) CounterOption { function WithNamespace (line 50) | func WithNamespace(namespace string) CounterOption { type HistogramOption (line 58) | type HistogramOption type histogramOptions (line 60) | type histogramOptions method apply (line 62) | func (ho histogramOptions) apply(o *prometheus.HistogramOpts) promethe... function WithHistogramBuckets (line 70) | func WithHistogramBuckets(buckets []float64) HistogramOption { function WithHistogramOpts (line 76) | func WithHistogramOpts(opts *prometheus.HistogramOpts) HistogramOption { function WithHistogramConstLabels (line 92) | func WithHistogramConstLabels(labels prometheus.Labels) HistogramOption { function WithHistogramSubsystem (line 99) | func WithHistogramSubsystem(subsystem string) HistogramOption { function WithHistogramNamespace (line 106) | func WithHistogramNamespace(namespace string) HistogramOption { function typeFromMethodInfo (line 112) | func typeFromMethodInfo(mInfo *grpc.MethodInfo) grpcType { type Option (line 126) | type Option type config (line 128) | type config struct method apply (line 133) | func (c *config) apply(opts []Option) { function WithExemplarFromContext (line 140) | func WithExemplarFromContext(exemplarFn exemplarFromCtxFn) Option { function WithLabelsFromContext (line 148) | func WithLabelsFromContext(labelsFn labelsFromCtxFn) Option { FILE: providers/prometheus/reporter.go type reporter (line 14) | type reporter struct method PostCall (line 24) | func (r *reporter) PostCall(err error, rpcDuration time.Duration) { method PostMsgSend (line 53) | func (r *reporter) PostMsgSend(_ any, _ error, sendDuration time.Durat... method PostMsgReceive (line 69) | func (r *reporter) PostMsgReceive(_ any, _ error, recvDuration time.Du... method incrementWithExemplar (line 150) | func (r *reporter) incrementWithExemplar(c *prometheus.CounterVec, lva... method observeWithExemplar (line 154) | func (r *reporter) observeWithExemplar(h *prometheus.HistogramVec, val... type reportable (line 85) | type reportable struct method ServerReporter (line 92) | func (rep *reportable) ServerReporter(ctx context.Context, meta interc... method ClientReporter (line 96) | func (rep *reportable) ClientReporter(ctx context.Context, meta interc... method reporter (line 100) | func (rep *reportable) reporter(ctx context.Context, sm *ServerMetrics... FILE: providers/prometheus/server_metrics.go type ServerMetrics (line 15) | type ServerMetrics struct method Describe (line 84) | func (m *ServerMetrics) Describe(ch chan<- *prometheus.Desc) { method Collect (line 97) | func (m *ServerMetrics) Collect(ch chan<- prometheus.Metric) { method InitializeMetrics (line 111) | func (m *ServerMetrics) InitializeMetrics(server reflection.ServiceInf... method preRegisterMethod (line 121) | func (m *ServerMetrics) preRegisterMethod(serviceName string, mInfo *g... method UnaryServerInterceptor (line 149) | func (m *ServerMetrics) UnaryServerInterceptor(opts ...Option) grpc.Un... method StreamServerInterceptor (line 157) | func (m *ServerMetrics) StreamServerInterceptor(opts ...Option) grpc.S... function NewServerMetrics (line 29) | func NewServerMetrics(opts ...ServerMetricsOption) *ServerMetrics { FILE: providers/prometheus/server_options.go type exemplarFromCtxFn (line 13) | type exemplarFromCtxFn type labelsFromCtxFn (line 14) | type labelsFromCtxFn type serverMetricsConfig (line 17) | type serverMetricsConfig struct method apply (line 29) | func (c *serverMetricsConfig) apply(opts []ServerMetricsOption) { type ServerMetricsOption (line 27) | type ServerMetricsOption function WithServerCounterOptions (line 36) | func WithServerCounterOptions(opts ...CounterOption) ServerMetricsOption { function WithServerHandlingTimeHistogram (line 44) | func WithServerHandlingTimeHistogram(opts ...HistogramOption) ServerMetr... function WithContextLabels (line 54) | func WithContextLabels(labelNames ...string) ServerMetricsOption { FILE: providers/prometheus/server_test.go function TestServerInterceptorSuite (line 30) | func TestServerInterceptorSuite(t *testing.T) { type ServerInterceptorTestSuite (line 44) | type ServerInterceptorTestSuite struct method SetupTest (line 50) | func (s *ServerInterceptorTestSuite) SetupTest() { method TestWithSubsystem (line 59) | func (s *ServerInterceptorTestSuite) TestWithSubsystem() { method TestRegisterPresetsStuff (line 73) | func (s *ServerInterceptorTestSuite) TestRegisterPresetsStuff() { method TestUnaryIncrementsMetrics (line 98) | func (s *ServerInterceptorTestSuite) TestUnaryIncrementsMetrics() { method TestStartedStreamingIncrementsStarted (line 112) | func (s *ServerInterceptorTestSuite) TestStartedStreamingIncrementsSta... method TestStreamingIncrementsMetrics (line 124) | func (s *ServerInterceptorTestSuite) TestStreamingIncrementsMetrics() { method TestContextCancelledTreatedAsStatus (line 160) | func (s *ServerInterceptorTestSuite) TestContextCancelledTreatedAsStat... function fetchPrometheusLines (line 176) | func fetchPrometheusLines(t *testing.T, reg prometheus.Gatherer, metricN... function toFloat64HistCount (line 211) | func toFloat64HistCount(h prometheus.Observer) uint64 { function requireSubsystemName (line 250) | func requireSubsystemName(t *testing.T, expect string, c prometheus.Coll... function requireNamespaceName (line 262) | func requireNamespaceName(t *testing.T, expect string, c prometheus.Coll... function requireValue (line 274) | func requireValue(t *testing.T, expect int, c prometheus.Collector) { function requireHistSubsystemName (line 286) | func requireHistSubsystemName(t *testing.T, expect string, o prometheus.... function requireHistNamespaceName (line 298) | func requireHistNamespaceName(t *testing.T, expect string, o prometheus.... function requireValueHistCount (line 310) | func requireValueHistCount(t *testing.T, expect int, o prometheus.Observ... function requireValueWithRetry (line 322) | func requireValueWithRetry(ctx context.Context, t *testing.T, expect int... function requireValueWithRetryHistCount (line 341) | func requireValueWithRetryHistCount(ctx context.Context, t *testing.T, e... FILE: testing/testpb/interceptor_suite.go type InterceptorTestSuite (line 37) | type InterceptorTestSuite struct method SetupSuite (line 56) | func (s *InterceptorTestSuite) SetupSuite() { method RestartServer (line 111) | func (s *InterceptorTestSuite) RestartServer(delayedStart time.Duratio... method NewClient (line 117) | func (s *InterceptorTestSuite) NewClient(dialOpts ...grpc.DialOption) ... method ServerAddr (line 136) | func (s *InterceptorTestSuite) ServerAddr() string { method SimpleCtx (line 201) | func (s *InterceptorTestSuite) SimpleCtx() context.Context { method DeadlineCtx (line 208) | func (s *InterceptorTestSuite) DeadlineCtx(deadline time.Time) context... method TearDownSuite (line 214) | func (s *InterceptorTestSuite) TearDownSuite() { type ctxTestNumber (line 140) | type ctxTestNumber struct function ExtractCtxTestNumber (line 147) | func ExtractCtxTestNumber(ctx context.Context) *int { type wrappedErrFields (line 154) | type wrappedErrFields struct method Unwrap (line 159) | func (err *wrappedErrFields) Unwrap() error { method Error (line 163) | func (err *wrappedErrFields) Error() string { method GRPCStatus (line 172) | func (err *wrappedErrFields) GRPCStatus() *status.Status { function WrapFieldsInError (line 179) | func WrapFieldsInError(err error, fields []any) error { function ExtractErrorFields (line 183) | func ExtractErrorFields(err error) []any { function UnaryServerInterceptor (line 193) | func UnaryServerInterceptor() grpc.UnaryServerInterceptor { function generateCertAndKey (line 231) | func generateCertAndKey(san []string) ([]byte, []byte, error) { FILE: testing/testpb/pingservice.go constant ListResponseCount (line 21) | ListResponseCount = 100 type TestPingService (line 29) | type TestPingService struct method PingEmpty (line 34) | func (s *TestPingService) PingEmpty(_ context.Context, _ *PingEmptyReq... method Ping (line 38) | func (s *TestPingService) Ping(ctx context.Context, ping *PingRequest)... method PingError (line 51) | func (s *TestPingService) PingError(_ context.Context, ping *PingError... method PingList (line 56) | func (s *TestPingService) PingList(ping *PingListRequest, stream TestS... method PingStream (line 70) | func (s *TestPingService) PingStream(stream TestService_PingStreamServ... method PingClientStream (line 89) | func (s *TestPingService) PingClientStream(stream TestService_PingClie... FILE: testing/testpb/pingservice_test.go function TestPingServiceOnWire (line 21) | func TestPingServiceOnWire(t *testing.T) { function TestTestServicePing_PingError (line 95) | func TestTestServicePing_PingError(t *testing.T) { FILE: testing/testpb/test.manual_validator.pb.go method Validate (line 10) | func (x *PingRequest) Validate(bool) error { method Validate (line 17) | func (x *PingErrorRequest) Validate() error { method Validate (line 24) | func (x *PingListRequest) Validate(bool) error { method Validate (line 31) | func (x *PingStreamRequest) Validate(bool) error { method Validate (line 39) | func (x *PingResponse) Validate() error { method ValidateAll (line 47) | func (x *PingResponse) ValidateAll() error { FILE: testing/testpb/test.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PingEmptyRequest (line 25) | type PingEmptyRequest struct method Reset (line 31) | func (x *PingEmptyRequest) Reset() { method String (line 38) | func (x *PingEmptyRequest) String() string { method ProtoMessage (line 42) | func (*PingEmptyRequest) ProtoMessage() {} method ProtoReflect (line 44) | func (x *PingEmptyRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 57) | func (*PingEmptyRequest) Descriptor() ([]byte, []int) { type PingEmptyResponse (line 61) | type PingEmptyResponse struct method Reset (line 67) | func (x *PingEmptyResponse) Reset() { method String (line 74) | func (x *PingEmptyResponse) String() string { method ProtoMessage (line 78) | func (*PingEmptyResponse) ProtoMessage() {} method ProtoReflect (line 80) | func (x *PingEmptyResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 93) | func (*PingEmptyResponse) Descriptor() ([]byte, []int) { type PingRequest (line 97) | type PingRequest struct method Reset (line 106) | func (x *PingRequest) Reset() { method String (line 113) | func (x *PingRequest) String() string { method ProtoMessage (line 117) | func (*PingRequest) ProtoMessage() {} method ProtoReflect (line 119) | func (x *PingRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 132) | func (*PingRequest) Descriptor() ([]byte, []int) { method GetValue (line 136) | func (x *PingRequest) GetValue() string { method GetSleepTimeMs (line 143) | func (x *PingRequest) GetSleepTimeMs() int32 { method GetErrorCodeReturned (line 150) | func (x *PingRequest) GetErrorCodeReturned() uint32 { type PingResponse (line 157) | type PingResponse struct method Reset (line 165) | func (x *PingResponse) Reset() { method String (line 172) | func (x *PingResponse) String() string { method ProtoMessage (line 176) | func (*PingResponse) ProtoMessage() {} method ProtoReflect (line 178) | func (x *PingResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 191) | func (*PingResponse) Descriptor() ([]byte, []int) { method GetValue (line 195) | func (x *PingResponse) GetValue() string { method GetCounter (line 202) | func (x *PingResponse) GetCounter() int32 { type PingErrorRequest (line 209) | type PingErrorRequest struct method Reset (line 218) | func (x *PingErrorRequest) Reset() { method String (line 225) | func (x *PingErrorRequest) String() string { method ProtoMessage (line 229) | func (*PingErrorRequest) ProtoMessage() {} method ProtoReflect (line 231) | func (x *PingErrorRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 244) | func (*PingErrorRequest) Descriptor() ([]byte, []int) { method GetValue (line 248) | func (x *PingErrorRequest) GetValue() string { method GetSleepTimeMs (line 255) | func (x *PingErrorRequest) GetSleepTimeMs() int32 { method GetErrorCodeReturned (line 262) | func (x *PingErrorRequest) GetErrorCodeReturned() uint32 { type PingErrorResponse (line 269) | type PingErrorResponse struct method Reset (line 277) | func (x *PingErrorResponse) Reset() { method String (line 284) | func (x *PingErrorResponse) String() string { method ProtoMessage (line 288) | func (*PingErrorResponse) ProtoMessage() {} method ProtoReflect (line 290) | func (x *PingErrorResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 303) | func (*PingErrorResponse) Descriptor() ([]byte, []int) { method GetValue (line 307) | func (x *PingErrorResponse) GetValue() string { method GetCounter (line 314) | func (x *PingErrorResponse) GetCounter() int32 { type PingListRequest (line 321) | type PingListRequest struct method Reset (line 330) | func (x *PingListRequest) Reset() { method String (line 337) | func (x *PingListRequest) String() string { method ProtoMessage (line 341) | func (*PingListRequest) ProtoMessage() {} method ProtoReflect (line 343) | func (x *PingListRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 356) | func (*PingListRequest) Descriptor() ([]byte, []int) { method GetValue (line 360) | func (x *PingListRequest) GetValue() string { method GetSleepTimeMs (line 367) | func (x *PingListRequest) GetSleepTimeMs() int32 { method GetErrorCodeReturned (line 374) | func (x *PingListRequest) GetErrorCodeReturned() uint32 { type PingListResponse (line 381) | type PingListResponse struct method Reset (line 389) | func (x *PingListResponse) Reset() { method String (line 396) | func (x *PingListResponse) String() string { method ProtoMessage (line 400) | func (*PingListResponse) ProtoMessage() {} method ProtoReflect (line 402) | func (x *PingListResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 415) | func (*PingListResponse) Descriptor() ([]byte, []int) { method GetValue (line 419) | func (x *PingListResponse) GetValue() string { method GetCounter (line 426) | func (x *PingListResponse) GetCounter() int32 { type PingStreamRequest (line 433) | type PingStreamRequest struct method Reset (line 442) | func (x *PingStreamRequest) Reset() { method String (line 449) | func (x *PingStreamRequest) String() string { method ProtoMessage (line 453) | func (*PingStreamRequest) ProtoMessage() {} method ProtoReflect (line 455) | func (x *PingStreamRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 468) | func (*PingStreamRequest) Descriptor() ([]byte, []int) { method GetValue (line 472) | func (x *PingStreamRequest) GetValue() string { method GetSleepTimeMs (line 479) | func (x *PingStreamRequest) GetSleepTimeMs() int32 { method GetErrorCodeReturned (line 486) | func (x *PingStreamRequest) GetErrorCodeReturned() uint32 { type PingStreamResponse (line 493) | type PingStreamResponse struct method Reset (line 501) | func (x *PingStreamResponse) Reset() { method String (line 508) | func (x *PingStreamResponse) String() string { method ProtoMessage (line 512) | func (*PingStreamResponse) ProtoMessage() {} method ProtoReflect (line 514) | func (x *PingStreamResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 527) | func (*PingStreamResponse) Descriptor() ([]byte, []int) { method GetValue (line 531) | func (x *PingStreamResponse) GetValue() string { method GetCounter (line 538) | func (x *PingStreamResponse) GetCounter() int32 { type PingClientStreamRequest (line 545) | type PingClientStreamRequest struct method Reset (line 554) | func (x *PingClientStreamRequest) Reset() { method String (line 561) | func (x *PingClientStreamRequest) String() string { method ProtoMessage (line 565) | func (*PingClientStreamRequest) ProtoMessage() {} method ProtoReflect (line 567) | func (x *PingClientStreamRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 580) | func (*PingClientStreamRequest) Descriptor() ([]byte, []int) { method GetValue (line 584) | func (x *PingClientStreamRequest) GetValue() string { method GetSleepTimeMs (line 591) | func (x *PingClientStreamRequest) GetSleepTimeMs() int32 { method GetErrorCodeReturned (line 598) | func (x *PingClientStreamRequest) GetErrorCodeReturned() uint32 { type PingClientStreamResponse (line 605) | type PingClientStreamResponse struct method Reset (line 612) | func (x *PingClientStreamResponse) Reset() { method String (line 619) | func (x *PingClientStreamResponse) String() string { method ProtoMessage (line 623) | func (*PingClientStreamResponse) ProtoMessage() {} method ProtoReflect (line 625) | func (x *PingClientStreamResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 638) | func (*PingClientStreamResponse) Descriptor() ([]byte, []int) { method GetCounter (line 642) | func (x *PingClientStreamResponse) GetCounter() int32 { function file_test_proto_rawDescGZIP (line 761) | func file_test_proto_rawDescGZIP() []byte { function init (line 803) | func init() { file_test_proto_init() } function file_test_proto_init (line 804) | func file_test_proto_init() { FILE: testing/testpb/test_grpc.pb.go constant _ (line 20) | _ = grpc.SupportPackageIsVersion9 constant TestService_PingEmpty_FullMethodName (line 23) | TestService_PingEmpty_FullMethodName = "/testing.testpb.v1.TestSe... constant TestService_Ping_FullMethodName (line 24) | TestService_Ping_FullMethodName = "/testing.testpb.v1.TestSe... constant TestService_PingError_FullMethodName (line 25) | TestService_PingError_FullMethodName = "/testing.testpb.v1.TestSe... constant TestService_PingList_FullMethodName (line 26) | TestService_PingList_FullMethodName = "/testing.testpb.v1.TestSe... constant TestService_PingStream_FullMethodName (line 27) | TestService_PingStream_FullMethodName = "/testing.testpb.v1.TestSe... constant TestService_PingClientStream_FullMethodName (line 28) | TestService_PingClientStream_FullMethodName = "/testing.testpb.v1.TestSe... type TestServiceClient (line 34) | type TestServiceClient interface type testServiceClient (line 43) | type testServiceClient struct method PingEmpty (line 51) | func (c *testServiceClient) PingEmpty(ctx context.Context, in *PingEmp... method Ping (line 61) | func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest,... method PingError (line 71) | func (c *testServiceClient) PingError(ctx context.Context, in *PingErr... method PingList (line 81) | func (c *testServiceClient) PingList(ctx context.Context, in *PingList... method PingStream (line 100) | func (c *testServiceClient) PingStream(ctx context.Context, opts ...gr... method PingClientStream (line 113) | func (c *testServiceClient) PingClientStream(ctx context.Context, opts... function NewTestServiceClient (line 47) | func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { type TestServiceServer (line 129) | type TestServiceServer interface type UnimplementedTestServiceServer (line 144) | type UnimplementedTestServiceServer struct method PingEmpty (line 146) | func (UnimplementedTestServiceServer) PingEmpty(context.Context, *Ping... method Ping (line 149) | func (UnimplementedTestServiceServer) Ping(context.Context, *PingReque... method PingError (line 152) | func (UnimplementedTestServiceServer) PingError(context.Context, *Ping... method PingList (line 155) | func (UnimplementedTestServiceServer) PingList(*PingListRequest, grpc.... method PingStream (line 158) | func (UnimplementedTestServiceServer) PingStream(grpc.BidiStreamingSer... method PingClientStream (line 161) | func (UnimplementedTestServiceServer) PingClientStream(grpc.ClientStre... method mustEmbedUnimplementedTestServiceServer (line 164) | func (UnimplementedTestServiceServer) mustEmbedUnimplementedTestServic... method testEmbeddedByValue (line 165) | func (UnimplementedTestServiceServer) testEmbeddedByValue() ... type UnsafeTestServiceServer (line 170) | type UnsafeTestServiceServer interface function RegisterTestServiceServer (line 174) | func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceS... function _TestService_PingEmpty_Handler (line 185) | func _TestService_PingEmpty_Handler(srv interface{}, ctx context.Context... function _TestService_Ping_Handler (line 203) | func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec... function _TestService_PingError_Handler (line 221) | func _TestService_PingError_Handler(srv interface{}, ctx context.Context... function _TestService_PingList_Handler (line 239) | func _TestService_PingList_Handler(srv interface{}, stream grpc.ServerSt... function _TestService_PingStream_Handler (line 250) | func _TestService_PingStream_Handler(srv interface{}, stream grpc.Server... function _TestService_PingClientStream_Handler (line 257) | func _TestService_PingClientStream_Handler(srv interface{}, stream grpc.... FILE: testing/testvalidate/v1/test_validate.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SendRequest (line 26) | type SendRequest struct method Reset (line 33) | func (x *SendRequest) Reset() { method String (line 40) | func (x *SendRequest) String() string { method ProtoMessage (line 44) | func (*SendRequest) ProtoMessage() {} method ProtoReflect (line 46) | func (x *SendRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 59) | func (*SendRequest) Descriptor() ([]byte, []int) { method GetMessage (line 63) | func (x *SendRequest) GetMessage() string { type SendResponse (line 70) | type SendResponse struct method Reset (line 76) | func (x *SendResponse) Reset() { method String (line 83) | func (x *SendResponse) String() string { method ProtoMessage (line 87) | func (*SendResponse) ProtoMessage() {} method ProtoReflect (line 89) | func (x *SendResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 102) | func (*SendResponse) Descriptor() ([]byte, []int) { type SendStreamRequest (line 106) | type SendStreamRequest struct method Reset (line 113) | func (x *SendStreamRequest) Reset() { method String (line 120) | func (x *SendStreamRequest) String() string { method ProtoMessage (line 124) | func (*SendStreamRequest) ProtoMessage() {} method ProtoReflect (line 126) | func (x *SendStreamRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 139) | func (*SendStreamRequest) Descriptor() ([]byte, []int) { method GetMessage (line 143) | func (x *SendStreamRequest) GetMessage() string { type SendStreamResponse (line 150) | type SendStreamResponse struct method Reset (line 156) | func (x *SendStreamResponse) Reset() { method String (line 163) | func (x *SendStreamResponse) String() string { method ProtoMessage (line 167) | func (*SendStreamResponse) ProtoMessage() {} method ProtoReflect (line 169) | func (x *SendStreamResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 182) | func (*SendStreamResponse) Descriptor() ([]byte, []int) { constant file_testing_testvalidate_v1_test_validate_proto_rawDesc (line 188) | file_testing_testvalidate_v1_test_validate_proto_rawDesc = "" + function file_testing_testvalidate_v1_test_validate_proto_rawDescGZIP (line 207) | func file_testing_testvalidate_v1_test_validate_proto_rawDescGZIP() []by... function init (line 233) | func init() { file_testing_testvalidate_v1_test_validate_proto_init() } function file_testing_testvalidate_v1_test_validate_proto_init (line 234) | func file_testing_testvalidate_v1_test_validate_proto_init() { FILE: testing/testvalidate/v1/test_validate_grpc.pb.go constant _ (line 20) | _ = grpc.SupportPackageIsVersion9 constant TestValidateService_Send_FullMethodName (line 23) | TestValidateService_Send_FullMethodName = "/testing.testvalidate.v... constant TestValidateService_SendStream_FullMethodName (line 24) | TestValidateService_SendStream_FullMethodName = "/testing.testvalidate.v... type TestValidateServiceClient (line 30) | type TestValidateServiceClient interface type testValidateServiceClient (line 35) | type testValidateServiceClient struct method Send (line 43) | func (c *testValidateServiceClient) Send(ctx context.Context, in *Send... method SendStream (line 53) | func (c *testValidateServiceClient) SendStream(ctx context.Context, in... function NewTestValidateServiceClient (line 39) | func NewTestValidateServiceClient(cc grpc.ClientConnInterface) TestValid... type TestValidateServiceServer (line 75) | type TestValidateServiceServer interface type UnimplementedTestValidateServiceServer (line 85) | type UnimplementedTestValidateServiceServer struct method Send (line 87) | func (UnimplementedTestValidateServiceServer) Send(context.Context, *S... method SendStream (line 90) | func (UnimplementedTestValidateServiceServer) SendStream(*SendStreamRe... method testEmbeddedByValue (line 93) | func (UnimplementedTestValidateServiceServer) testEmbeddedByValue() {} type UnsafeTestValidateServiceServer (line 98) | type UnsafeTestValidateServiceServer interface function RegisterTestValidateServiceServer (line 102) | func RegisterTestValidateServiceServer(s grpc.ServiceRegistrar, srv Test... function _TestValidateService_Send_Handler (line 113) | func _TestValidateService_Send_Handler(srv interface{}, ctx context.Cont... function _TestValidateService_SendStream_Handler (line 131) | func _TestValidateService_SendStream_Handler(srv interface{}, stream grp... FILE: testing/testvalidate/validateservice.go type TestValidateService (line 12) | type TestValidateService struct method Send (line 16) | func (v *TestValidateService) Send( method SendStream (line 23) | func (v *TestValidateService) SendStream( FILE: util/backoffutils/backoff.go function JitterUp (line 16) | func JitterUp(duration time.Duration, jitter float64) time.Duration { function ExponentBase2 (line 22) | func ExponentBase2(a uint) uint { FILE: util/backoffutils/backoff_test.go function scaleDuration (line 15) | func scaleDuration(d time.Duration, factor float64) time.Duration { function TestJitterUp (line 19) | func TestJitterUp(t *testing.T) { FILE: wrappers.go type WrappedServerStream (line 13) | type WrappedServerStream struct method Context (line 20) | func (w *WrappedServerStream) Context() context.Context { function WrapServerStream (line 25) | func WrapServerStream(stream grpc.ServerStream) *WrappedServerStream { FILE: wrappers_test.go type someKey (line 17) | type someKey struct type other (line 18) | type other struct function TestWrapServerStream (line 21) | func TestWrapServerStream(t *testing.T) { type fakeServerStream (line 30) | type fakeServerStream struct method Context (line 37) | func (f *fakeServerStream) Context() context.Context { method SendMsg (line 41) | func (f *fakeServerStream) SendMsg(m any) error { method RecvMsg (line 49) | func (f *fakeServerStream) RecvMsg(m any) error {