exampleplug

package
v0.0.0-...-bed2b4e Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginHandshake = goplugin.HandshakeConfig{
	MagicCookieKey:   "PLUGINGEN_MAGIC_COOKIE_KEY",
	MagicCookieValue: "ee2f63579676392f535cbdeb674657fc",
	ProtocolVersion:  1,
}

PluginHandshake is a plugin handshake generated from the input interfaces.

Functions

This section is empty.

Types

type ReaderPlugin

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

ReaderPlugin implements the Plugin interface for Reader.

func NewReaderPlugin

func NewReaderPlugin(impl io.Reader) *ReaderPlugin

func (*ReaderPlugin) Client

func (p *ReaderPlugin) Client(b *goplugin.MuxBroker, c *rpc.Client) (interface{}, error)

Client implements the Client method for the Plugin interface.

func (*ReaderPlugin) Server

func (p *ReaderPlugin) Server(b *goplugin.MuxBroker) (interface{}, error)

Server implements the Server method for the Plugin interface.

type ReaderRPCClient

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

ReaderRPCClient implements Reader via net/rpc.

func NewReaderRPCClient

func NewReaderRPCClient(b *goplugin.MuxBroker, c *rpc.Client) *ReaderRPCClient

func (*ReaderRPCClient) Read

func (c *ReaderRPCClient) Read(p0 []byte) (int, error)

Read implements Read for the Reader interface.

type ReaderRPCServer

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

ReaderRPCServer implements the net/rpc server for Reader.

func NewReaderRPCServer

func NewReaderRPCServer(b *goplugin.MuxBroker, impl io.Reader) *ReaderRPCServer

func (*ReaderRPCServer) Read

Read implements the server side of net/rpc calls to Read.

type ThingerPlugin

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

ThingerPlugin implements the Plugin interface for Thinger.

func NewThingerPlugin

func NewThingerPlugin(impl example.Thinger) *ThingerPlugin

func (*ThingerPlugin) Client

func (p *ThingerPlugin) Client(b *goplugin.MuxBroker, c *rpc.Client) (interface{}, error)

Client implements the Client method for the Plugin interface.

func (*ThingerPlugin) Server

func (p *ThingerPlugin) Server(b *goplugin.MuxBroker) (interface{}, error)

Server implements the Server method for the Plugin interface.

type ThingerRPCClient

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

ThingerRPCClient implements Thinger via net/rpc.

func NewThingerRPCClient

func NewThingerRPCClient(b *goplugin.MuxBroker, c *rpc.Client) *ThingerRPCClient

func (*ThingerRPCClient) Copy

func (c *ThingerRPCClient) Copy(p0 io.Writer, p1 io.Reader) (int64, error)

Copy implements Copy for the Thinger interface.

func (*ThingerRPCClient) DoNothing

func (c *ThingerRPCClient) DoNothing()

DoNothing implements DoNothing for the Thinger interface.

func (*ThingerRPCClient) ErrorToError

func (c *ThingerRPCClient) ErrorToError(p0 error) error

ErrorToError implements ErrorToError for the Thinger interface.

func (*ThingerRPCClient) Identity

func (c *ThingerRPCClient) Identity(p0 interface{}) interface{}

Identity implements Identity for the Thinger interface.

func (*ThingerRPCClient) Replace

func (c *ThingerRPCClient) Replace(p0 string, p1 interface {
	Replace(string) string
}) string

Replace implements Replace for the Thinger interface.

func (*ThingerRPCClient) String

func (c *ThingerRPCClient) String() string

String implements String for the Thinger interface.

func (*ThingerRPCClient) Sum

func (c *ThingerRPCClient) Sum(p0 ...int) int

Sum implements Sum for the Thinger interface.

type ThingerRPCServer

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

ThingerRPCServer implements the net/rpc server for Thinger.

func NewThingerRPCServer

func NewThingerRPCServer(b *goplugin.MuxBroker, impl example.Thinger) *ThingerRPCServer

func (*ThingerRPCServer) Copy

Copy implements the server side of net/rpc calls to Copy.

func (*ThingerRPCServer) DoNothing

func (s *ThingerRPCServer) DoNothing(_ interface{}, _ *interface{}) error

DoNothing implements the server side of net/rpc calls to DoNothing.

func (*ThingerRPCServer) ErrorToError

ErrorToError implements the server side of net/rpc calls to ErrorToError.

func (*ThingerRPCServer) Identity

Identity implements the server side of net/rpc calls to Identity.

func (*ThingerRPCServer) Replace

Replace implements the server side of net/rpc calls to Replace.

func (*ThingerRPCServer) String

func (s *ThingerRPCServer) String(_ interface{}, results *Z_Thinger_StringResults) error

String implements the server side of net/rpc calls to String.

func (*ThingerRPCServer) Sum

Sum implements the server side of net/rpc calls to Sum.

type WriterPlugin

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

WriterPlugin implements the Plugin interface for Writer.

func NewWriterPlugin

func NewWriterPlugin(impl io.Writer) *WriterPlugin

func (*WriterPlugin) Client

func (p *WriterPlugin) Client(b *goplugin.MuxBroker, c *rpc.Client) (interface{}, error)

Client implements the Client method for the Plugin interface.

func (*WriterPlugin) Server

func (p *WriterPlugin) Server(b *goplugin.MuxBroker) (interface{}, error)

Server implements the Server method for the Plugin interface.

type WriterRPCClient

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

WriterRPCClient implements Writer via net/rpc.

func NewWriterRPCClient

func NewWriterRPCClient(b *goplugin.MuxBroker, c *rpc.Client) *WriterRPCClient

func (*WriterRPCClient) Write

func (c *WriterRPCClient) Write(p0 []byte) (int, error)

Write implements Write for the Writer interface.

type WriterRPCServer

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

WriterRPCServer implements the net/rpc server for Writer.

func NewWriterRPCServer

func NewWriterRPCServer(b *goplugin.MuxBroker, impl io.Writer) *WriterRPCServer

func (*WriterRPCServer) Write

Write implements the server side of net/rpc calls to Write.

type Z_Interface0Plugin

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

Z_Interface0Plugin implements the Plugin interface for Z_Interface0.

func NewZ_Interface0Plugin

func NewZ_Interface0Plugin(impl interface {
	Replace(string) string
}) *Z_Interface0Plugin

func (*Z_Interface0Plugin) Client

func (p *Z_Interface0Plugin) Client(b *goplugin.MuxBroker, c *rpc.Client) (interface{}, error)

Client implements the Client method for the Plugin interface.

func (*Z_Interface0Plugin) Server

func (p *Z_Interface0Plugin) Server(b *goplugin.MuxBroker) (interface{}, error)

Server implements the Server method for the Plugin interface.

type Z_Interface0RPCClient

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

Z_Interface0RPCClient implements Z_Interface0 via net/rpc.

func NewZ_Interface0RPCClient

func NewZ_Interface0RPCClient(b *goplugin.MuxBroker, c *rpc.Client) *Z_Interface0RPCClient

func (*Z_Interface0RPCClient) Replace

func (c *Z_Interface0RPCClient) Replace(p0 string) string

Replace implements Replace for the Z_Interface0 interface.

type Z_Interface0RPCServer

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

Z_Interface0RPCServer implements the net/rpc server for Z_Interface0.

func NewZ_Interface0RPCServer

func NewZ_Interface0RPCServer(b *goplugin.MuxBroker, impl interface {
	Replace(string) string
}) *Z_Interface0RPCServer

func (*Z_Interface0RPCServer) Replace

Replace implements the server side of net/rpc calls to Replace.

type Z_Reader_ReadParams

type Z_Reader_ReadParams struct {
	P0 []byte
}

Z_Reader_ReadParams contains parameters for the Read function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Reader_ReadResults

type Z_Reader_ReadResults struct {
	R0 int
	R1 error
}

Z_Reader_ReadResults contains results for the Read function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_CopyParams

type Z_Thinger_CopyParams struct {
	P0ID uint32
	P1ID uint32
}

Z_Thinger_CopyParams contains parameters for the Copy function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_CopyResults

type Z_Thinger_CopyResults struct {
	R0 int64
	R1 error
}

Z_Thinger_CopyResults contains results for the Copy function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_ErrorToErrorParams

type Z_Thinger_ErrorToErrorParams struct {
	P0 error
}

Z_Thinger_ErrorToErrorParams contains parameters for the ErrorToError function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_ErrorToErrorResults

type Z_Thinger_ErrorToErrorResults struct {
	R0 error
}

Z_Thinger_ErrorToErrorResults contains results for the ErrorToError function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_IdentityParams

type Z_Thinger_IdentityParams struct {
	P0 interface{}
}

Z_Thinger_IdentityParams contains parameters for the Identity function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_IdentityResults

type Z_Thinger_IdentityResults struct {
	R0 interface{}
}

Z_Thinger_IdentityResults contains results for the Identity function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_ReplaceParams

type Z_Thinger_ReplaceParams struct {
	P0   string
	P1ID uint32
}

Z_Thinger_ReplaceParams contains parameters for the Replace function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_ReplaceResults

type Z_Thinger_ReplaceResults struct {
	R0 string
}

Z_Thinger_ReplaceResults contains results for the Replace function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_StringResults

type Z_Thinger_StringResults struct {
	R0 string
}

Z_Thinger_StringResults contains results for the String function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_SumParams

type Z_Thinger_SumParams struct {
	P0 []int
}

Z_Thinger_SumParams contains parameters for the Sum function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Thinger_SumResults

type Z_Thinger_SumResults struct {
	R0 int
}

Z_Thinger_SumResults contains results for the Sum function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Writer_WriteParams

type Z_Writer_WriteParams struct {
	P0 []byte
}

Z_Writer_WriteParams contains parameters for the Write function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Writer_WriteResults

type Z_Writer_WriteResults struct {
	R0 int
	R1 error
}

Z_Writer_WriteResults contains results for the Write function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Z_Interface0_ReplaceParams

type Z_Z_Interface0_ReplaceParams struct {
	P0 string
}

Z_Z_Interface0_ReplaceParams contains parameters for the Replace function. It is exported for compatibility with net/rpc and should not be used directly.

type Z_Z_Interface0_ReplaceResults

type Z_Z_Interface0_ReplaceResults struct {
	R0 string
}

Z_Z_Interface0_ReplaceResults contains results for the Replace function. It is exported for compatibility with net/rpc and should not be used directly.

Jump to

Keyboard shortcuts

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