app

package
v2.19.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GetAppURL(ctx context.Context, resource *provider.ResourceInfo, viewMode appprovider.ViewMode, token, language string) (*appprovider.OpenInAppURL, error)
	GetAppProviderInfo(ctx context.Context) (*registry.ProviderInfo, error)
}

Provider is the interface that application providers implement for interacting with external apps that serve the requested resource.

type Registry

type Registry interface {
	FindProviders(ctx context.Context, mimeType string) ([]*registry.ProviderInfo, error)
	ListProviders(ctx context.Context) ([]*registry.ProviderInfo, error)
	ListSupportedMimeTypes(ctx context.Context) ([]*registry.MimeTypeInfo, error)
	AddProvider(ctx context.Context, p *registry.ProviderInfo) error
	GetDefaultProviderForMimeType(ctx context.Context, mimeType string) (*registry.ProviderInfo, error)
	SetDefaultProviderForMimeType(ctx context.Context, mimeType string, p *registry.ProviderInfo) error
}

Registry is the interface that application registries implement for discovering application providers

Directories

Path Synopsis
provider

Jump to

Keyboard shortcuts

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