grpcStatsHandler

package
v0.0.0-...-84fc14a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnCounterHandler

type ConnCounterHandler struct {
	sync.Mutex

	//如果非nil,则在连接断开时会以连接id为参数调用此回调
	ConnEndCallBack func(connId int64)
	// contains filtered or unexported fields
}

func (*ConnCounterHandler) GetConnCount

func (h *ConnCounterHandler) GetConnCount() int

func (*ConnCounterHandler) GetConnId

func (h *ConnCounterHandler) GetConnId(ctx context.Context) (int64, bool)

func (*ConnCounterHandler) HandleConn

func (h *ConnCounterHandler) HandleConn(ctx context.Context, s stats.ConnStats)

func (*ConnCounterHandler) HandleRPC

func (h *ConnCounterHandler) HandleRPC(ctx context.Context, s stats.RPCStats)

func (*ConnCounterHandler) TagConn

func (*ConnCounterHandler) TagRPC

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL