status

package
v0.0.0-...-f425ee8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FmtDuration

func FmtDuration(d time.Duration) string

FmtDuration returns time string.

Types

type Server

type Server struct {
	Temperature Temperature
	BootTime    time.Time
	Uptime      time.Duration
}

Server = VO

func NewServer

func NewServer() Server

NewServer fixes the timestamp when the request is arrived.

type Temperature

type Temperature float32

Temperature = VO

func (Temperature) String

func (t Temperature) String() string

String returns the temperature with human readable format.

Jump to

Keyboard shortcuts

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