middleware

package
v1.6.14 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(next net.Conn) net.Conn

func Logger

func Logger(informer logger.Informer) Func

func ReadBytesCounter

func ReadBytesCounter(counter *prometheus.CounterVec, informer logger.Informer) Func

func ReadWriteCounter

func ReadWriteCounter(appConfig *app.Config, informer logger.Informer) []Func

func WriteByteCounter

func WriteByteCounter(counter *prometheus.CounterVec, informer logger.Informer) Func

func (Func) Middleware

func (middleware Func) Middleware(next net.Conn) net.Conn

type Middleware

type Middleware interface {
	Middleware(next net.Conn) net.Conn
}

Jump to

Keyboard shortcuts

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