configfile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFilePath added in v0.3.0

func GetConfigFilePath() (string, error)

Types

type Appliance

type Appliance struct {
	Name    string
	ID      string
	Type    natureremo.ApplianceType
	Signals []*natureremo.Signal
}

type Config added in v0.3.0

type Config interface {
	LoadAllSetting() (*Setting, error)
	LoadToken() (string, error)
	LoadAppliances() ([]*Appliance, error)
	Sync(string) error
}

func New

func New(path string) (Config, error)

type Setting

type Setting struct {
	Credential struct {
		Token string
	}
	Appliances []*Appliance
}

Jump to

Keyboard shortcuts

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