metrics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptSdk

func InterceptSdk(sdkId string, metricsHandler Handler, transport http.RoundTripper) http.RoundTripper

func Measure

func Measure(metricsHandler Handler, next http.HandlerFunc) http.HandlerFunc

Types

type Handler

type Handler interface {
	IncrementConnection(sdkId string, streamType string, flag string)
	DecrementConnection(sdkId string, streamType string, flag string)

	HttpHandler() http.Handler
}

func NewHandler

func NewHandler() Handler

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(handler http.Handler, conf *config.MetricsConfig, log log.Logger, errorChan chan error) *Server

func (*Server) Listen

func (h *Server) Listen()

func (*Server) Shutdown

func (h *Server) Shutdown()

Jump to

Keyboard shortcuts

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