stats

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Code200 map[int64]uint64 `json:"code200,omitempty"`
	Code400 uint64           `json:"code400,omitempty"`
	Code500 uint64           `json:"code500,omitempty"`
}

type Response

type Response struct {
	Auth  Body  `json:"auth,omitempty"`
	List  Body  `json:"list,omitempty"`
	Order Body  `json:"order,omitempty"`
	Hello int64 `json:"hello,omitempty"`
}

type Stats

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

func NewStats

func NewStats(capacity int) *Stats

func (*Stats) IncAuth200

func (s *Stats) IncAuth200(userID int64)

func (*Stats) IncAuth400

func (s *Stats) IncAuth400()

func (*Stats) IncAuth500

func (s *Stats) IncAuth500()

func (*Stats) IncHello

func (s *Stats) IncHello()

func (*Stats) IncList200

func (s *Stats) IncList200(userID int64)

func (*Stats) IncList400

func (s *Stats) IncList400()

func (*Stats) IncList500

func (s *Stats) IncList500()

func (*Stats) IncOrder200

func (s *Stats) IncOrder200(userID int64)

func (*Stats) IncOrder400

func (s *Stats) IncOrder400()

func (*Stats) IncOrder500

func (s *Stats) IncOrder500()

func (*Stats) Reset

func (s *Stats) Reset()

func (*Stats) Response

func (s *Stats) Response() Response

Jump to

Keyboard shortcuts

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