state

package
v0.0.0-...-db6cb46 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	IsBusy        bool
	StatePath     string
	DateTimeLabel string
	DateUnixTime  time.Time
}

type DataFromJSON

type DataFromJSON struct {
	DateUnixTime int64 `json:"DateUnixTime"`
}

type State

type State struct {
	UniqueName string
	StatePath  string
}

func NewState

func NewState(uniqueName string, statePath string) *State

func (*State) Clear

func (c *State) Clear()

func (*State) GetStateData

func (c *State) GetStateData() Data

func (*State) GetStatePath

func (c *State) GetStatePath() string

Jump to

Keyboard shortcuts

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