Documentation ¶
Overview ¶
Package chromemsg implements the Chrome native messaging protocol: https://developer.chrome.com/docs/extensions/develop/concepts/native-messaging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureHost ¶
func ConfigureHost() error
Configure writes native messaging host configuration to various well-known folders, including Google Chrome, Arc, Microsoft Edge, and Vivaldi.
See: https://developer.chrome.com/docs/extensions/develop/concepts/native-messaging#native-messaging-host
The resulting file looks like this:
{ "name": "io.commonfate.granted", "description": "Granted BrowserSupport", "path": "/usr/local/bin/granted", "type": "stdio", "allowed_origins": [ "chrome-extension://fcipjekpmlpmiikgdecbjbcpmenmceoh/" ] }
Types ¶
type HostManifest ¶
Click to show internal directories.
Click to hide internal directories.