memory

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

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
}

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 (e *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 endpoing

Jump to

Keyboard shortcuts

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