plugin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcPluginServer

func NewGrpcPluginServer(addr string) *grpcServer

Types

type Call

type Call func(ctx context.Context, req interface{}) (reply interface{}, err error)

type Plugin

type Plugin interface {
	Lookup(name string) (call Call, err error)
	String() string
	Close() error
}

func NewGrpcPlugin

func NewGrpcPlugin(entrypoint, addr string) Plugin

func NewSoPlugin

func NewSoPlugin(path string) Plugin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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