models

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 1 Imported by: 45

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Timestamp time.Time
	Message   string
}

type Meta added in v0.7.4

type Meta map[string]string

func NewMeta added in v0.7.4

func NewMeta(kvs ...string) Meta

NewMeta returns an initialized Meta map. An optional series of key, values may be provided to populate the map prior to returning

func (Meta) Get added in v0.7.4

func (m Meta) Get(k string) string

type Metrics

type Metrics struct {
	NCpus        uint8
	CPUUtil      int
	NetTx        int64
	NetRx        int64
	MemLimit     int64
	MemPercent   int
	MemUsage     int64
	IOBytesRead  int64
	IOBytesWrite int64
	Pids         int
}

func NewMetrics

func NewMetrics() Metrics

Jump to

Keyboard shortcuts

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