associated

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 12 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

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 {
	Details []Detail `json:"details,omitempty"`
}

type Appstrings

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

type Component

type Component struct {
	Path    string `json:"/,omitempty"`
	Param   string `json:"?,omitempty"`
	Exclude *bool  `json:"exclude,omitempty"`
	Comment string `json:"comment,omitempty"`
}

type Controller

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

func New

func (*Controller) HandleAndroid

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

func (*Controller) HandleIos

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

type Detail

type Detail struct {
	AppIds     []string    `json:"appIDs,omitempty"`
	Components []Component `json:"components,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