memory

package
v0.0.0-...-e54f367 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryAPI

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

MemoryAPI ...

func New

func New() *MemoryAPI

func (*MemoryAPI) APIAlloc

func (m *MemoryAPI) APIAlloc(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*MemoryAPI) APIClear

func (m *MemoryAPI) APIClear(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)

func (*MemoryAPI) APIGet

func (*MemoryAPI) AddRoutes

func (m *MemoryAPI) AddRoutes(r *httprouter.Router, base string)

type MemoryStatus

type MemoryStatus struct {
	MemStats runtime.MemStats `json:"memStats"`
}

MemoryStatus is returned from a GET to this API endpoint

Jump to

Keyboard shortcuts

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