logconnections

package
v0.0.0-...-5cbc359 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logconnections implements a stream interceptor to notify the pinged object on each new and ended connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamServerInterceptor

func StreamServerInterceptor() func(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

StreamServerInterceptor notifies the pingued object on each new and ended connections. If the pingued object implements onNewConnectionner, it will have OnNewConnection called when the connection is established (can be used for logging for instance) If the pingued object implements onDoneConnectionner, it will have OnDoneConnection called when the connection was handled by the server (can be used to reset an internal timeout for instance).

Types

This section is empty.

Jump to

Keyboard shortcuts

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