Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLinks ¶
type AppLinks struct {
Details []Detail `json:"details"`
}
AppLinks applinks字段 Apps应该始终为空数组 see https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/enabling_universal_links#3002229 > apps: > This key is not used for universal links, but it must be present and set to an empty array, as shown in Listing 1.
type AppLinksIOS12 ¶
type AppLinksIOS12 struct { Apps []string `json:"apps"` Details []DetailIOS12 `json:"details"` }
AppLinksIOS12 applinks字段 Apps应该始终为空数组 see https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/enabling_universal_links#3002229 > apps: > This key is not used for universal links, but it must be present and set to an empty array, as shown in Listing 1.
type Association ¶
type Association struct { AppLinks AppLinks `json:"applinks"` WebCredentials *WebCredentials `json:"webcredentials,omitempty"` }
AssociationIOS12 iOS 12及以下版本的通用连接关联配置 reference: https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/enabling_universal_links#3381438
func (Association) Marshal ¶
func (a Association) Marshal() (string, error)
type AssociationIOS12 ¶
type AssociationIOS12 struct { AppLinks AppLinksIOS12 `json:"applinks"` WebCredentials *WebCredentials `json:"webcredentials,omitempty"` }
AssociationIOS12 iOS 12及以下版本的通用连接关联配置 reference: https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/enabling_universal_links#3381438
func (AssociationIOS12) Marshal ¶
func (a AssociationIOS12) Marshal() (string, error)
type AssociationMarshaler ¶
type DetailIOS12 ¶
DetailIOS12 detail信息
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(addr string, afterResponse func(r *http.Request)) *HTTPServer
func (*HTTPServer) AddAssociation ¶
func (s *HTTPServer) AddAssociation(d Domain, a AssociationMarshaler) error
func (*HTTPServer) Serve ¶
func (s *HTTPServer) Serve() error
func (*HTTPServer) ServeHTTP ¶
func (s *HTTPServer) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type WebCredentials ¶
type WebCredentials struct {
Apps []string `json:"apps"`
}