plugin

package
v0.0.0-...-74f90a1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path, pattern string, rcf RegisterClientFunc) (int, error)

Types

type Plugin

type Plugin interface {
	Lookup(name string) (plugin.Symbol, error)
}

Plugin is the interface of the loaded plugins

type RegisterClientFunc

type RegisterClientFunc func(
	name string,
	enc func(context.Context, interface{}) (interface{}, error),
	dec func(context.Context, interface{}) (interface{}, error),
	t interface{},
)

type Registerer

type Registerer interface {
	RegisterClients(func(
		name string,
		enc func(context.Context, interface{}) (interface{}, error),
		dec func(context.Context, interface{}) (interface{}, error),
		t interface{},
	))
}

Jump to

Keyboard shortcuts

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