metadata

package
v1.0.0-beta.10 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	UserAgent string
	Platform  Platform
	Version   *semver.Version
}

func Detect

func Detect(userAgent string) Metadata

type Platform

type Platform string
const (
	PlatformUnknown   Platform = ""
	PlatformAndroid   Platform = "android"
	PlatformiOS       Platform = "ios"
	PlatformMacOS     Platform = "macos"
	PlatformAppleTVOS Platform = "tvos"
)

func ParsePlatform

func ParsePlatform(name string) (Platform, error)

func (Platform) IsApple

func (m Platform) IsApple() bool

func (Platform) IsNetworkExtensionMemoryLimited

func (m Platform) IsNetworkExtensionMemoryLimited() bool

func (Platform) String

func (m Platform) String() string

func (Platform) TunOnly

func (m Platform) TunOnly() bool

Jump to

Keyboard shortcuts

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