fabric: github.com/hyperledger/fabric/common/grpcmetrics Index | Files | Directories

package grpcmetrics

import "github.com/hyperledger/fabric/common/grpcmetrics"

Index

Package Files

interceptor.go metrics.go

func StreamServerInterceptor Uses

func StreamServerInterceptor(sm *StreamMetrics) grpc.StreamServerInterceptor

func UnaryServerInterceptor Uses

func UnaryServerInterceptor(um *UnaryMetrics) grpc.UnaryServerInterceptor

type StreamMetrics Uses

type StreamMetrics struct {
    RequestDuration   metrics.Histogram
    RequestsReceived  metrics.Counter
    RequestsCompleted metrics.Counter
    MessagesSent      metrics.Counter
    MessagesReceived  metrics.Counter
}

func NewStreamMetrics Uses

func NewStreamMetrics(p metrics.Provider) *StreamMetrics

type UnaryMetrics Uses

type UnaryMetrics struct {
    RequestDuration   metrics.Histogram
    RequestsReceived  metrics.Counter
    RequestsCompleted metrics.Counter
}

func NewUnaryMetrics Uses

func NewUnaryMetrics(p metrics.Provider) *UnaryMetrics

Directories

PathSynopsis
fakesCode generated by counterfeiter.
testpb

Package grpcmetrics imports 5 packages (graph) and is imported by 2 packages. Updated 2018-12-12. Refresh now. Tools for package owners.