Documentation ¶
Index ¶
- Variables
- type ReaderPlugin
- type ReaderRPCClient
- type ReaderRPCServer
- type ThingerPlugin
- type ThingerRPCClient
- func (c *ThingerRPCClient) Copy(p0 io.Writer, p1 io.Reader) (int64, error)
- func (c *ThingerRPCClient) DoNothing()
- func (c *ThingerRPCClient) ErrorToError(p0 error) error
- func (c *ThingerRPCClient) Identity(p0 interface{}) interface{}
- func (c *ThingerRPCClient) Replace(p0 string, p1 interface{ ... }) string
- func (c *ThingerRPCClient) String() string
- func (c *ThingerRPCClient) Sum(p0 ...int) int
- type ThingerRPCServer
- func (s *ThingerRPCServer) Copy(params *Z_Thinger_CopyParams, results *Z_Thinger_CopyResults) error
- func (s *ThingerRPCServer) DoNothing(_ interface{}, _ *interface{}) error
- func (s *ThingerRPCServer) ErrorToError(params *Z_Thinger_ErrorToErrorParams, results *Z_Thinger_ErrorToErrorResults) error
- func (s *ThingerRPCServer) Identity(params *Z_Thinger_IdentityParams, results *Z_Thinger_IdentityResults) error
- func (s *ThingerRPCServer) Replace(params *Z_Thinger_ReplaceParams, results *Z_Thinger_ReplaceResults) error
- func (s *ThingerRPCServer) String(_ interface{}, results *Z_Thinger_StringResults) error
- func (s *ThingerRPCServer) Sum(params *Z_Thinger_SumParams, results *Z_Thinger_SumResults) error
- type WriterPlugin
- type WriterRPCClient
- type WriterRPCServer
- type Z_Interface0Plugin
- type Z_Interface0RPCClient
- type Z_Interface0RPCServer
- type Z_Reader_ReadParams
- type Z_Reader_ReadResults
- type Z_Thinger_CopyParams
- type Z_Thinger_CopyResults
- type Z_Thinger_ErrorToErrorParams
- type Z_Thinger_ErrorToErrorResults
- type Z_Thinger_IdentityParams
- type Z_Thinger_IdentityResults
- type Z_Thinger_ReplaceParams
- type Z_Thinger_ReplaceResults
- type Z_Thinger_StringResults
- type Z_Thinger_SumParams
- type Z_Thinger_SumResults
- type Z_Writer_WriteParams
- type Z_Writer_WriteResults
- type Z_Z_Interface0_ReplaceParams
- type Z_Z_Interface0_ReplaceResults
Constants ¶
This section is empty.
Variables ¶
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
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
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 ¶
func (s *ReaderRPCServer) Read(params *Z_Reader_ReadParams, results *Z_Reader_ReadResults) error
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
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) 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 ¶
func (s *ThingerRPCServer) Copy(params *Z_Thinger_CopyParams, results *Z_Thinger_CopyResults) error
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 ¶
func (s *ThingerRPCServer) ErrorToError(params *Z_Thinger_ErrorToErrorParams, results *Z_Thinger_ErrorToErrorResults) error
ErrorToError implements the server side of net/rpc calls to ErrorToError.
func (*ThingerRPCServer) Identity ¶
func (s *ThingerRPCServer) Identity(params *Z_Thinger_IdentityParams, results *Z_Thinger_IdentityResults) error
Identity implements the server side of net/rpc calls to Identity.
func (*ThingerRPCServer) Replace ¶
func (s *ThingerRPCServer) Replace(params *Z_Thinger_ReplaceParams, results *Z_Thinger_ReplaceResults) error
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 ¶
func (s *ThingerRPCServer) Sum(params *Z_Thinger_SumParams, results *Z_Thinger_SumResults) error
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
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
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 ¶
func (s *WriterRPCServer) Write(params *Z_Writer_WriteParams, results *Z_Writer_WriteResults) error
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
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 ¶
func (s *Z_Interface0RPCServer) Replace(params *Z_Z_Interface0_ReplaceParams, results *Z_Z_Interface0_ReplaceResults) error
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.