shared

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BothRPCServer

type BothRPCServer struct {
	Impl       Greeter
	FoobarImpl Foobar
}

func (*BothRPCServer) Foobar

func (g *BothRPCServer) Foobar(args interface{}, resp *string) error

func (*BothRPCServer) Greet

func (g *BothRPCServer) Greet(args interface{}, resp *string) error

type Foobar

type Foobar interface {
	Foobar2() string
}

type FoobarPlugin

type FoobarPlugin struct {
	Impl Foobar
}

func (*FoobarPlugin) Client

func (p *FoobarPlugin) Client(broker *plugin.MuxBroker, client *rpc.Client) (interface{}, error)

func (*FoobarPlugin) Server

func (p *FoobarPlugin) Server(broker *plugin.MuxBroker) (interface{}, error)

type FoobarRPC

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

func (*FoobarRPC) Foobar

func (g *FoobarRPC) Foobar() string

type FoobarRPCServer

type FoobarRPCServer struct {
	Impl Foobar
}

func (*FoobarRPCServer) Foobar

func (g *FoobarRPCServer) Foobar(args interface{}, resp *string) error

type Greeter

type Greeter interface {
	Greet() string
	Foobar(int, float64, string) string
}

type GreeterPlugin

type GreeterPlugin struct {
	Impl Greeter
}

func (*GreeterPlugin) Client

func (p *GreeterPlugin) Client(broker *plugin.MuxBroker, client *rpc.Client) (interface{}, error)

func (*GreeterPlugin) Server

func (p *GreeterPlugin) Server(broker *plugin.MuxBroker) (interface{}, error)

type GreeterRPC

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

func (*GreeterRPC) Foobar

func (g *GreeterRPC) Foobar(i int, f float64, s string) string

func (*GreeterRPC) Greet

func (g *GreeterRPC) Greet() string

type GreeterRPCServer

type GreeterRPCServer struct {
	Impl Greeter
}

func (*GreeterRPCServer) Foobar

func (g *GreeterRPCServer) Foobar(args *struct {
	I int
	F float64
	S string
}, resp *string) error

Foobar is the RPC accessible method that wraps the Greeter's Foobar method.

func (*GreeterRPCServer) Greet

func (g *GreeterRPCServer) Greet(args interface{}, resp *string) error

Jump to

Keyboard shortcuts

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