rc

package
v0.0.0-...-96a5f51 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name     string `json:"name"`
	IP       string `json:"ip"`
	Username string `json:"username"`
	Password string `json:"password"`
	Current  bool   `json:"current"`
}

type RC

type RC struct {
	Devices []*Device `json:"devices"`
	// contains filtered or unexported fields
}

func LoadRC

func LoadRC() (*RC, error)

func (*RC) CurrentDevice

func (rc *RC) CurrentDevice() *Device

func (*RC) Read

func (rc *RC) Read() error

func (*RC) Write

func (rc *RC) Write() error

Jump to

Keyboard shortcuts

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