client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequestDetails

func LogRequestDetails(r *http.Request, elapsed time.Duration)

func TrackerMiddleware

func TrackerMiddleware(next http.Handler) http.Handler

Types

type GinSDK

type GinSDK struct {
	Logger *logrus.Logger
	// contains filtered or unexported fields
}

func NewSDK

func NewSDK(filename string) *GinSDK

func (*GinSDK) CalculateCPUUsage

func (sdk *GinSDK) CalculateCPUUsage(initial, final *cpu.TimesStat, start time.Time) float64

func (*GinSDK) Close

func (sdk *GinSDK) Close()

func (*GinSDK) GinTrackerMiddleware

func (sdk *GinSDK) GinTrackerMiddleware() gin.HandlerFunc

func (*GinSDK) SetupCleanup

func (sdk *GinSDK) SetupCleanup()

Jump to

Keyboard shortcuts

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