model

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cpus

type Cpus struct {
	Cores    int               `json:"cores"`
	Features cpuid.CpuFeatures `json:"features"`
}

type Disk

type Disk struct {
	All  uint64 `json:"all"`
	Used uint64 `json:"used"`
	Free uint64 `json:"free"`
}

func (*Disk) Reset

func (disk *Disk) Reset()

type Gc

type Gc struct {
	Numgc       uint32 `json:"numgc"`
	NumForcedGC uint32 `json:"numForcedGC"`
}

func (*Gc) Reset

func (gc *Gc) Reset()

type Memory

type Memory struct {
	Frees     uint64 `json:"frees"`
	Heapalloc uint64 `json:"heapalloc"`
	Mallocs   uint64 `json:"mallocs"`
	Alloc     uint64 `json:"alloc"`
	Total     uint64 `json:"total"`
	Sys       uint64 `json:"sys"`
	App       struct {
		Alloc      uint64 `json:"allocMb"`
		TotalAlloc uint64 `json:"totalMb"`
		Sys        uint64 `json:"sysMb"`
	} `json:"app"`
}

func (*Memory) Reset

func (memory *Memory) Reset()

type Runtime

type Runtime struct {
	Compiler string `json:"compiler"`
}

type ServerInfoResponse

type ServerInfoResponse struct {
	Architecture string  `json:"arch"`
	Os           string  `json:"os"`
	Cpus         Cpus    `json:"cpus"`
	Runtime      Runtime `json:"runtime"`
	Version      Version `json:"version"`
}

func (ServerInfoResponse) Bytes

func (r ServerInfoResponse) Bytes(serializer common.Serializer) []byte

type ServerStatusResponse

type ServerStatusResponse struct {
	Disk   Disk   `json:"disk"`
	Memory Memory `json:"memory"`
	Gc     Gc     `json:"gc"`
}

func (*ServerStatusResponse) Reset

func (r *ServerStatusResponse) Reset()

type Version

type Version struct {
	AppName string `json:"app_name"`
	HTTP    string `json:"http"`
	Go      string `json:"go"`
}

Jump to

Keyboard shortcuts

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