imp

package
v0.0.0-...-74b39d6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

type Importer interface {
	Import(string) error
}

type ImporterPlugin

type ImporterPlugin struct {
	Impl Importer
}

func (*ImporterPlugin) Client

func (p *ImporterPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (any, error)

func (*ImporterPlugin) Server

func (p *ImporterPlugin) Server(*plugin.MuxBroker) (any, error)

type ImporterRPC

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

Here is an implementation that talks over RPC

func (*ImporterRPC) Client

func (im *ImporterRPC) Client() *rpc.Client

func (*ImporterRPC) Import

func (im *ImporterRPC) Import(s string) error

type ImporterRPCServer

type ImporterRPCServer struct {
	// This is the real implementation
	Impl Importer
}

Here is the RPC server that ImporterRPC talks to, conforming to the requirements of net/rpc

func (*ImporterRPCServer) Import

func (s *ImporterRPCServer) Import(args interface{}, resp *error) error

Jump to

Keyboard shortcuts

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