stress

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	Load         float64       `json:"load"`
	Duration     time.Duration `json:"duration"`
	Active       time.Time     `json:"active"`
	Core         float64       `json:"core"`
	LastModified time.Time     `json:"last_modified"`
}

func (*CPU) GetHandler

func (c *CPU) GetHandler(ctx *gin.Context)

func (*CPU) PatchHandler

func (c *CPU) PatchHandler(ctx *gin.Context)

func (*CPU) Stress

func (c *CPU) Stress() error

type Memory

type Memory struct {
	Megabyte     int64         `json:"megabyte"`
	Active       time.Time     `json:"active"`
	Duration     time.Duration `json:"duration"`
	LastModified time.Time     `json:"last_modified"`
	// contains filtered or unexported fields
}

func (*Memory) CopyFrom

func (m *Memory) CopyFrom(s *Memory)

func (*Memory) GetHandler

func (m *Memory) GetHandler(ctx *gin.Context)

func (*Memory) PatchHandler

func (m *Memory) PatchHandler(ctx *gin.Context)

func (*Memory) Stress

func (m *Memory) Stress() error

func (*Memory) Wait

func (m *Memory) Wait()

Jump to

Keyboard shortcuts

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