stats

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	UpTime         string           `json:"uptime"`
	UpTimeSec      float64          `json:"uptime_sec"`
	ResponseCounts map[string]int64 `json:"count"`
	TotalCount     int64            `json:"total_count"`
}

type Stats

type Stats struct {
	Uptime         time.Time        `json:"-"`
	Pid            int              `json:"-"`
	ResponseCounts map[string]int64 `json:"-"`
	Path           string           `json:"path"`
	// contains filtered or unexported fields
}

func (*Stats) Data

func (p *Stats) Data() *Data

func (*Stats) Handler

func (p *Stats) Handler() fasthttp.RequestHandler

func (*Stats) Init

func (p *Stats) Init(c *middleware.Config) error

func (*Stats) Process

func (*Stats) UnInit

func (p *Stats) UnInit()

Jump to

Keyboard shortcuts

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