Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeepLink ¶
type DeepLink struct { // Scheme is the name of the scheme to register, for example "myapp" will be accessible via "myapp://" Scheme string // Host is the host to listen on, used for checking is the app is already running Port uint // OnMessage is called when a message is received, the message is passed as a string OnMessage func(string) }
func NewDeeplink ¶
NewDeeplink creates a new DeepLink instance scheme is the name of the scheme to register, for example "myapp" will be accessible via "myapp://"
func (*DeepLink) Prepare ¶
func (dl *DeepLink) Prepare()
Prepare prepares the DeepLink instance for receiving messages, this is required to redirect message to already running app
func (*DeepLink) Register ¶
Register registers the scheme in the registry, this is required for the scheme to work
func (*DeepLink) Unregister ¶
Unregister unregisters the scheme from the registry
Click to show internal directories.
Click to hide internal directories.