plugins

package module
v0.0.0-...-96ca58d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

README

#Publisher contracts

This folder contains the contracts used by plugins to communicate with the host go-between process.

Go-between uses the hashicorp go-plugin framework and gRPC to communicate with plugins.

The go-plugin handshake contract that plugins must validate is

    ProtocolVersion:  1,
	MagicCookieKey:   "PUBLISHER_PLUGIN"
	MagicCookieValue: "naveego"

Docs:

Documentation

Index

Constants

View Source
const PublisherMagicCookieKey = "PUBLISHER_PLUGIN"

PublisherMagicCookieKey is the env variable plugins should check for.

View Source
const PublisherMagicCookieValue = "naveego"

PublisherMagicCookieValue is the env variable value plugins should check for.

View Source
const PublisherProtocolVersion = 1

PublisherProtocolVersion is the version of the Publisher protocol.

Variables

This section is empty.

Functions

func GenerateManagement

func GenerateManagement(toDir string) error

GenerateManagement generates the implementation from the management.proto file. This file and method is mostly provided to allow this package to be pulled in using go get.

func GeneratePublisher

func GeneratePublisher(toDir string) error

GeneratePublisher generates a golang publisher implementation from the publisher.proto file. This file and method is mostly provided to allow this package to be pulled in using go get.

Types

This section is empty.

Jump to

Keyboard shortcuts

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