apcupsd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	Raw    string
	Parsed map[string]string
}

Output struct

func NewOutput

func NewOutput(raw string) *Output

NewOutput constructor

func (*Output) Get

func (o *Output) Get(key string, def string) string

Get ..

func (*Output) GetFloat

func (o *Output) GetFloat(key string, def float64) float64

GetFloat ..

func (*Output) GetMapped

func (o *Output) GetMapped(key string, kvMap map[string]interface{}, def interface{}) interface{}

GetMapped ..

func (*Output) GetSeconds

func (o *Output) GetSeconds(key string, def int64) int64

GetSeconds ..

func (*Output) GetTime

func (o *Output) GetTime(key string, def time.Time) time.Time

GetTime ..

func (*Output) GetUint

func (o *Output) GetUint(key string, def uint64) uint64

GetUint ..

func (*Output) IsEmpty

func (o *Output) IsEmpty() bool

IsEmpty method

func (*Output) Parse

func (o *Output) Parse()

Parse method

Jump to

Keyboard shortcuts

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