index

package
v0.0.0-...-977fba5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 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 Home

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

func NewHome

func NewHome() *Home

func (*Home) Run

func (o *Home) Run(_ context.Context, _ iris.Context) interface{}

type HomeResponse

type HomeResponse struct {
	Time time.Time `json:"time" label:"Started time"`
}

type Ping

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

func NewPing

func NewPing() *Ping

func (*Ping) Run

func (o *Ping) Run(_ context.Context, _ iris.Context) interface{}

type PingResponse

type PingResponse struct {
	Cpu       int     `json:"cpu" label:"CPU core count" mock:"8"`
	Goroutine int     `json:"goroutines" label:"Coroutine counts" mock:"32"`
	Memory    float64 `json:"memory" label:"Used system memory" desc:"Unit: MB" mock:"16.57"`
	Pid       int     `json:"pid" label:"Process ID" mock:"3721"`
	StartTime string  `json:"start_time" label:"Started time" mock:"2022-01-19 14:21:25"`
}

Jump to

Keyboard shortcuts

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