Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { Name() string Type() DeviceType Platform() *Platform SetPlatform(p *Platform) }
type DeviceBot ¶
type DeviceBot struct {
GenericDevice
}
type DeviceDesktop ¶
type DeviceDesktop struct {
GenericDevice
}
func NewDesktop ¶
func NewDesktop(name string) *DeviceDesktop
type DeviceGlass ¶
type DeviceGlass struct {
GenericDevice
}
func NewGlass ¶
func NewGlass(name string) *DeviceGlass
type DeviceMobile ¶
type DeviceMobile struct {
GenericDevice
}
func NewMobile ¶
func NewMobile(name string) *DeviceMobile
type DeviceTablet ¶
type DeviceTablet struct {
GenericDevice
}
func NewTablet ¶
func NewTablet(name string) *DeviceTablet
type DeviceTv ¶
type DeviceTv struct {
GenericDevice
}
type DeviceType ¶
type DeviceType int
const ( TABLET DeviceType = iota MOBILE TV DESKTOP WATCH BOT GLASS UNKNOWN )
type DeviceUnknown ¶
type DeviceUnknown struct {
GenericDevice
}
func NewUnknown ¶
func NewUnknown(name string) *DeviceUnknown
type DeviceWatch ¶
type DeviceWatch struct {
GenericDevice
}
func NewWatch ¶
func NewWatch(name string) *DeviceWatch
type GenericDevice ¶
type GenericDevice struct {
// contains filtered or unexported fields
}
func (GenericDevice) Name ¶
func (g GenericDevice) Name() string
func (GenericDevice) Platform ¶
func (g GenericDevice) Platform() *Platform
func (GenericDevice) SetPlatform ¶
func (g GenericDevice) SetPlatform(p *Platform)
func (GenericDevice) Type ¶
func (g GenericDevice) Type() DeviceType
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func NewPlatform ¶
Click to show internal directories.
Click to hide internal directories.