shared

package
v0.0.7 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 Counter

type Counter interface {
	Add(x int) int
}

type CounterPlugin

type CounterPlugin struct {
	Impl Counter
}

func (*CounterPlugin) Client

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

func (*CounterPlugin) Server

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

type CounterRPC

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

func (*CounterRPC) Add

func (c *CounterRPC) Add(x int) int

type CounterRPCServer

type CounterRPCServer struct {
	Impl Counter
}

func (*CounterRPCServer) Add

func (s *CounterRPCServer) Add(args int, resp *int) error

Jump to

Keyboard shortcuts

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