types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 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 Alias

type Alias struct {
	Device *Device
	Name   string
}

Alias is the full structure of device plus a common name used as alias

type AliasResponse

type AliasResponse struct {
	Alias
	Response chan struct{}
}

func (*AliasResponse) String added in v1.0.3

func (alias *AliasResponse) String() string

type DelDev

type DelDev struct {
	Alias    string
	Response chan error
}

DelDev internal type used for device delete

type DevPageAlias added in v1.0.3

type DevPageAlias struct {
	Alias
	Prefix string
}

DevPageAlias is the full structure of device plus a common name used as alias and prefix

type Device

type Device struct {
	Mac string
	IP  string
}

Device is the simple rapresentation of a remote device target of wake up

func (*Device) String added in v1.0.3

func (dev *Device) String() string

type GetDev

type GetDev struct {
	Alias    string
	Response chan *Device
}

GetDev is an internal object used for api

type PasswordHandling

type PasswordHandling struct {
	Password string
	Response chan error
}

PasswordHandling is a structure used for password matching

type PasswordUpdate

type PasswordUpdate struct {
	OldPassword string
	NewPassword string
	Response    chan error
}

PasswordUpdate is used for update current password

type Report added in v1.0.3

type Report struct {
	Alias  string
	Alive  bool
	Report map[time.Time]bool
}

WakeUpReport represent a report after wake up attempt

type ResponseError

type ResponseError struct {
	Message string
	Prefix  string
}

ResponseError retrieves particular response error

Jump to

Keyboard shortcuts

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