Documentation ¶
Index ¶
- func StreamServerCommonOpts(ctx context.Context, statsTagsFns ...TagsFunc) []grpc.ServerOption
- func UnaryClientCommonOpts(ctx context.Context, timeout time.Duration, ...) []grpc.DialOption
- func UnaryServerCommonOpts(ctx context.Context, statsTagsFns ...TagsFunc) []grpc.ServerOption
- func WithHandlers(handlers ...grpcstats.Handler) grpcstats.Handler
- func WithRPCStats(stats stats.Stats, tagsFns ...TagsFunc) grpcstats.Handler
- type Server
- type TagsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerCommonOpts ¶
func StreamServerCommonOpts(ctx context.Context, statsTagsFns ...TagsFunc) []grpc.ServerOption
StreamServerCommonOpts returns commonly options for a stream server.
func UnaryClientCommonOpts ¶ added in v3.24.0
func UnaryClientCommonOpts(ctx context.Context, timeout time.Duration, additional ...grpc.UnaryClientInterceptor) []grpc.DialOption
UnaryClientCommonOpts returns commonly options for an unary client.
func UnaryServerCommonOpts ¶
func UnaryServerCommonOpts(ctx context.Context, statsTagsFns ...TagsFunc) []grpc.ServerOption
UnaryServerCommonOpts returns commonly options for an unary server.
func WithHandlers ¶
WithHandlers returns an aggregated stats handler. All inner handlers are called in order.
Types ¶
Click to show internal directories.
Click to hide internal directories.