devices

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Android

type Android struct {
	// contains filtered or unexported fields
}

func NewAndroid

func NewAndroid(userAgent string) *Android

func (Android) Match

func (a Android) Match() bool

func (Android) Name

func (a Android) Name() string

type BlackberryPlaybook

type BlackberryPlaybook struct {
	// contains filtered or unexported fields
}

func NewBlackberryPlaybook

func NewBlackberryPlaybook(userAgent string) *BlackberryPlaybook

func (*BlackberryPlaybook) Match

func (b *BlackberryPlaybook) Match() bool

func (*BlackberryPlaybook) Name

func (b *BlackberryPlaybook) Name() string

type Ipad

type Ipad struct {
	// contains filtered or unexported fields
}

func NewIpad

func NewIpad(userAgent string) *Ipad

func (*Ipad) Match

func (i *Ipad) Match() bool

func (*Ipad) Name

func (i *Ipad) Name() string

type Iphone

type Iphone struct {
	// contains filtered or unexported fields
}

func NewIphone

func NewIphone(userAgent string) *Iphone

func (*Iphone) Match

func (i *Iphone) Match() bool

func (*Iphone) Name

func (i *Iphone) Name() string

type IpodTouch

type IpodTouch struct {
	// contains filtered or unexported fields
}

func NewIpodTouch

func NewIpodTouch(userAgent string) *IpodTouch

func (*IpodTouch) Match

func (i *IpodTouch) Match() bool

func (*IpodTouch) Name

func (i *IpodTouch) Name() string

type Kindle

type Kindle struct {
	// contains filtered or unexported fields
}

func NewKindle

func NewKindle(userAgent string) *Kindle

func (*Kindle) Match

func (k *Kindle) Match() bool

func (*Kindle) Name

func (k *Kindle) Name() string

type KindleFire

type KindleFire struct {
	// contains filtered or unexported fields
}

func NewKindleFire

func NewKindleFire(userAgent string) *KindleFire

func (*KindleFire) Match

func (k *KindleFire) Match() bool

func (*KindleFire) Name

func (k *KindleFire) Name() string

type PSP

type PSP struct {
	// contains filtered or unexported fields
}

func NewPSP

func NewPSP(userAgent string) *PSP

func (*PSP) Match

func (p *PSP) Match() bool

func (*PSP) Name

func (p *PSP) Name() string

type PSVita

type PSVita struct {
	// contains filtered or unexported fields
}

func NewPSVita

func NewPSVita(userAgent string) *PSVita

func (*PSVita) Match

func (p *PSVita) Match() bool

func (*PSVita) Name

func (p *PSVita) Name() string

type PlayStation3

type PlayStation3 struct {
	// contains filtered or unexported fields
}

func NewPlayStation3

func NewPlayStation3(userAgent string) *PlayStation3

func (*PlayStation3) Match

func (p *PlayStation3) Match() bool

func (*PlayStation3) Name

func (p *PlayStation3) Name() string

type PlayStation4

type PlayStation4 struct {
	// contains filtered or unexported fields
}

func NewPlayStation4

func NewPlayStation4(userAgent string) *PlayStation4

func (*PlayStation4) Match

func (p *PlayStation4) Match() bool

func (*PlayStation4) Name

func (p *PlayStation4) Name() string

type PlayStation5

type PlayStation5 struct {
	// contains filtered or unexported fields
}

func NewPlayStation5

func NewPlayStation5(userAgent string) *PlayStation5

func (*PlayStation5) Match

func (p *PlayStation5) Match() bool

func (*PlayStation5) Name

func (p *PlayStation5) Name() string

type Samsung

type Samsung struct {
	// contains filtered or unexported fields
}

func NewSamsung

func NewSamsung(userAgent string) *Samsung

NewSamsung creates a new Samsung platform.

func (*Samsung) Match

func (s *Samsung) Match() bool

func (*Samsung) Name

func (s *Samsung) Name() string

type Surface

type Surface struct {
	// contains filtered or unexported fields
}

func NewSurface

func NewSurface(userAgent string) *Surface

func (*Surface) Match

func (s *Surface) Match() bool

func (*Surface) Name

func (s *Surface) Name() string

type Switch

type Switch struct {
	// contains filtered or unexported fields
}

func NewSwitch

func NewSwitch(userAgent string) *Switch

func (*Switch) Match

func (s *Switch) Match() bool

func (*Switch) Name

func (s *Switch) Name() string

type TV

type TV struct {
	// contains filtered or unexported fields
}

func NewTV

func NewTV(userAgent string) *TV

func (*TV) Match

func (t *TV) Match() bool

func (*TV) Name

func (t *TV) Name() string

type Unknown

type Unknown struct {
	// contains filtered or unexported fields
}

Unknown represents an unknown device. These are devices that we don't know about yet. These are matched last.

func NewUnknown

func NewUnknown(userAgent string) *Unknown

func (Unknown) Match

func (u Unknown) Match() bool

func (Unknown) Name

func (u Unknown) Name() string

type Wii

type Wii struct {
	// contains filtered or unexported fields
}

func NewWii

func NewWii(userAgent string) *Wii

func (*Wii) Match

func (w *Wii) Match() bool

func (*Wii) Name

func (w *Wii) Name() string

type WiiU

type WiiU struct {
	// contains filtered or unexported fields
}

func NewWiiU

func NewWiiU(userAgent string) *WiiU

func (*WiiU) Match

func (w *WiiU) Match() bool

func (*WiiU) Name

func (w *WiiU) Name() string

type Xbox360

type Xbox360 struct {
	// contains filtered or unexported fields
}

func NewXbox360

func NewXbox360(userAgent string) *Xbox360

func (*Xbox360) Match

func (x *Xbox360) Match() bool

func (*Xbox360) Name

func (x *Xbox360) Name() string

type XboxOne

type XboxOne struct {
	// contains filtered or unexported fields
}

func NewXboxOne

func NewXboxOne(userAgent string) *XboxOne

func (*XboxOne) Match

func (x *XboxOne) Match() bool

func (*XboxOne) Name

func (x *XboxOne) Name() string

Jump to

Keyboard shortcuts

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