associated

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package associated handles the iOS and Android associated app handler protocols. For more discussion of these protocols, please see:

Android:

https://developer.android.com/training/app-links/verify-site-associations

iOS:

https://developer.apple.com/documentation/safariservices/supporting_associated_domains

Package associated handles the iOS and Android associated app handler protocols. For more discussion of these protocols, please see:

Android:

https://developer.android.com/training/app-links/verify-site-associations

iOS:

https://developer.apple.com/documentation/safariservices/supporting_associated_domains

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidData

type AndroidData struct {
	Relation []string `json:"relation,omitempty"`
	Target   Target   `json:"target,omitempty"`
}
type Applinks struct {
	Apps    []string `json:"apps"`
	Details []Detail `json:"details,omitempty"`
}

type Appstrings

type Appstrings struct {
	Apps []string `json:"apps,omitempty"`
}

type Controller

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

func New

func (*Controller) AndroidData added in v0.19.0

func (c *Controller) AndroidData(realmID uint) ([]AndroidData, error)

AndroidData finds all the android data apps.

func (*Controller) HandleAndroid

func (c *Controller) HandleAndroid() http.Handler

func (*Controller) HandleIos

func (c *Controller) HandleIos() http.Handler

func (*Controller) IOSData added in v0.19.0

func (c *Controller) IOSData(realmID uint) (*IOSData, error)

IOSData gets the iOS app data.

type Detail

type Detail struct {
	AppID string   `json:"appID,omitempty"`
	Paths []string `json:"paths,omitempty"`
}

type IOSData

type IOSData struct {
	Applinks Applinks `json:"applinks"`

	// The following two fields are included for completeness' sake, but are not
	// currently populated/used by the system.
	Webcredentials *Appstrings `json:"webcredentials,omitempty"`
	Appclips       *Appstrings `json:"appclips,omitempty"`
}

type Target

type Target struct {
	Namespace    string   `json:"namespace,omitempty"`
	PackageName  string   `json:"package_name,omitempty"`
	Fingerprints []string `json:"sha256_cert_fingerprints,omitempty"`
}

Jump to

Keyboard shortcuts

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