Documentation ¶
Index ¶
- type ChainStatsHandler
- func (c *ChainStatsHandler) HandleConn(ctx context.Context, stat stats.ConnStats)
- func (c *ChainStatsHandler) HandleRPC(ctx context.Context, stat stats.RPCStats)
- func (c *ChainStatsHandler) TagConn(ctx context.Context, info *stats.ConnTagInfo) context.Context
- func (c *ChainStatsHandler) TagRPC(ctx context.Context, info *stats.RPCTagInfo) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainStatsHandler ¶
type ChainStatsHandler struct {
// contains filtered or unexported fields
}
ChainStatsHandler is a composite stats.Handler that chains multiple stats.Handler instances.
func NewChainStatsHandler ¶
func NewChainStatsHandler(handlers ...stats.Handler) *ChainStatsHandler
NewChainStatsHandler creates a new ChainStatsHandler.
func (*ChainStatsHandler) HandleConn ¶
func (c *ChainStatsHandler) HandleConn(ctx context.Context, stat stats.ConnStats)
HandleConn calls HandleConn on all the chained stats.Handler instances.
func (*ChainStatsHandler) HandleRPC ¶
func (c *ChainStatsHandler) HandleRPC(ctx context.Context, stat stats.RPCStats)
HandleRPC calls HandleRPC on all the chained stats.Handler instances.
func (*ChainStatsHandler) TagConn ¶
func (c *ChainStatsHandler) TagConn(ctx context.Context, info *stats.ConnTagInfo) context.Context
TagConn calls TagConn on all the chained stats.Handler instances.
func (*ChainStatsHandler) TagRPC ¶
func (c *ChainStatsHandler) TagRPC(ctx context.Context, info *stats.RPCTagInfo) context.Context
TagRPC calls TagRPC on all the chained stats.Handler instances.
Click to show internal directories.
Click to hide internal directories.