platform

package
v0.0.0-...-8314e09 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 License: MIT Imports: 0 Imported by: 2

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
}

func NewBot

func NewBot(name string) *DeviceBot

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
}

func NewTv

func NewTv(name string) *DeviceTv

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

func NewPlatform(
	name,
	version string,
) *Platform

func (*Platform) Build

func (p *Platform) Build() string

func (*Platform) Model

func (p *Platform) Model() string

func (*Platform) Name

func (p *Platform) Name() string

func (*Platform) SetBuild

func (p *Platform) SetBuild(b string)

func (*Platform) SetModel

func (p *Platform) SetModel(m string)

func (*Platform) Version

func (p *Platform) Version() string

Jump to

Keyboard shortcuts

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