rpc

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin1

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

func (*Plugin1) Init

func (p1 *Plugin1) Init(cfg config.Configurer) error

func (*Plugin1) Name

func (p1 *Plugin1) Name() string

func (*Plugin1) RPC

func (p1 *Plugin1) RPC() interface{}

func (*Plugin1) Serve

func (p1 *Plugin1) Serve() chan error

func (*Plugin1) Stop

func (p1 *Plugin1) Stop() error

type Plugin2

type Plugin2 struct {
}

Plugin2 makes a call to the plugin1 via RPC this is just a simulation of external call FOR TEST you don't need to do such things :)

func (*Plugin2) Init

func (p2 *Plugin2) Init() error

func (*Plugin2) Serve

func (p2 *Plugin2) Serve() chan error

func (*Plugin2) Stop

func (p2 *Plugin2) Stop() error

type PluginRPC

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

func (*PluginRPC) Hello

func (r *PluginRPC) Hello(in string, out *string) error

Jump to

Keyboard shortcuts

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