plugins

package
v0.30.63 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package plugins is general purpose package for findy-agent to register addons for agency as a Go code without direct dependency to the implementation and to the repo. For example, gRPC server code is currently implemented in separate git repo to allow pure incremental development of it. The agency cmd that invokes the server only refers to it by name, so no package direct import is needed. The gRPC server plugin installs itself at the build time thru findy-service-tool, which registers the specific plugin i.e. gRPC service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlugin

func AddPlugin(name string, plugin Plugin)

Types

type Map

type Map struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type Plugin

type Plugin interface {
	Run()
}

Plugin is a plugin interface for addon ledger implementations.

func GetPlugin

func GetPlugin(name string) Plugin

type RegisteredPlugins

type RegisteredPlugins map[string]Plugin

Jump to

Keyboard shortcuts

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