helloworld

package
v21.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ConnectorName = "ping"

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginConnector

type PluginConnector struct {
	plugin.Plugin
}

func (*PluginConnector) GRPCClient

func (p *PluginConnector) GRPCClient(ctx context.Context, b *plugin.GRPCBroker, cc *grpc.ClientConn) (interface{}, error)

func (*PluginConnector) GRPCServer

func (p *PluginConnector) GRPCServer(b *plugin.GRPCBroker, s *grpc.Server) error

type PluginGateway

type PluginGateway struct {
	// contains filtered or unexported fields
}

func (*PluginGateway) Greeting

func (p *PluginGateway) Greeting(ctx context.Context, msg string) (string, error)

type PluginHelloWorld

type PluginHelloWorld interface {
	Greeting(ctx context.Context, msg string) (string, error)
}

type PluginHelloWorldDeferFunc

type PluginHelloWorldDeferFunc func() (PluginHelloWorld, error)

type ReloadablePluginHelloWorld

type ReloadablePluginHelloWorld struct {
	DeferFunc PluginHelloWorldDeferFunc
}

func (*ReloadablePluginHelloWorld) Greeting

func (d *ReloadablePluginHelloWorld) Greeting(ctx context.Context, msg string) (string, error)

Jump to

Keyboard shortcuts

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