Documentation
¶
Overview ¶
Package channel observes transport lifetimes for the credential binding.
Index ¶
- func ConnectionLifetime(ctx context.Context) context.Context
- type ConnectionObserver
- func (ConnectionObserver) HandleConn(ctx context.Context, event stats.ConnStats)
- func (ConnectionObserver) HandleRPC(context.Context, stats.RPCStats)
- func (ConnectionObserver) TagConn(ctx context.Context, _ *stats.ConnTagInfo) context.Context
- func (ConnectionObserver) TagRPC(ctx context.Context, _ *stats.RPCTagInfo) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionObserver ¶
type ConnectionObserver struct{}
ConnectionObserver attaches an irrevocable end signal to each gRPC server transport. RPCs inherit the tag from their own connection, not from a map keyed by an address, a certificate, or the current ClientConn state. It does not inspect, extract, or record RPC data.
func (ConnectionObserver) HandleConn ¶
func (ConnectionObserver) HandleConn(ctx context.Context, event stats.ConnStats)
func (ConnectionObserver) HandleRPC ¶
func (ConnectionObserver) HandleRPC(context.Context, stats.RPCStats)
func (ConnectionObserver) TagConn ¶
func (ConnectionObserver) TagConn(ctx context.Context, _ *stats.ConnTagInfo) context.Context
func (ConnectionObserver) TagRPC ¶
func (ConnectionObserver) TagRPC(ctx context.Context, _ *stats.RPCTagInfo) context.Context