PowerStatusFailureReason

package
v0.0.0-...-099f623 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reason

type Reason int
const (
	NoTransfer  Reason = iota
	HighVoltage Reason = iota
	BrownOut    Reason = iota
	SelfTest    Reason = iota
	Unknown     Reason = iota
)

func NewReason

func NewReason(name string) Reason

NewReason returns a Reason based on the given name. If the name doesn't match any value, the zero-value is returned.

func (Reason) String

func (c Reason) String() string

String implmenents the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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