Documentation ¶
Index ¶
- func StreamServerCommonOpts(ctx context.Context, statsTagsFns ...TagsFunc) []grpc.ServerOption
- 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 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.