Documentation ¶
Index ¶
- func StreamServerStatusMetricHandler(statusCodes map[string][]uint64, promRequest func(string, int)) grpc.StreamServerInterceptor
- func StreamServerTimeHandler(cb func(payload, peer string, t time.Duration)) grpc.StreamServerInterceptor
- func UnaryServerStatusMetricHandler(statusCodes map[string][]uint64, promRequest func(string, int)) grpc.UnaryServerInterceptor
- func UnaryServerTimeHandler(cb func(payload, peer string, t time.Duration)) grpc.UnaryServerInterceptor
- type WrappedStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerTimeHandler ¶
func StreamServerTimeHandler(cb func(payload, peer string, t time.Duration)) grpc.StreamServerInterceptor
func UnaryServerTimeHandler ¶
func UnaryServerTimeHandler(cb func(payload, peer string, t time.Duration)) grpc.UnaryServerInterceptor
Types ¶
type WrappedStream ¶
type WrappedStream struct { grpc.ServerStream // contains filtered or unexported fields }
func GetWrappedStream ¶
func GetWrappedStream(ss grpc.ServerStream) *WrappedStream
func (*WrappedStream) Context ¶
func (ws *WrappedStream) Context() context.Context
func (*WrappedStream) Payload ¶
func (ws *WrappedStream) Payload() string
func (*WrappedStream) RecvMsg ¶
func (ws *WrappedStream) RecvMsg(m interface{}) error
func (*WrappedStream) SetContext ¶
func (ws *WrappedStream) SetContext(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.