interfaces

package
v0.0.0-...-26b5a30 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Randomizer

type Randomizer interface {
	Get() int
}

Randomizer is a plugin interface

type RandomizerPlugin

type RandomizerPlugin struct {
	Impl Randomizer
}

RandomizerPlugin boilerplate

func (RandomizerPlugin) Client

func (RandomizerPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

Client constructor

func (*RandomizerPlugin) Server

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

Server constructor

type RandomizerRPC

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

RandomizerRPC client

func (*RandomizerRPC) Get

func (g *RandomizerRPC) Get() int

Get via rpc

type RandomizerRPCServer

type RandomizerRPCServer struct {
	Impl Randomizer
}

RandomizerRPCServer state

func (*RandomizerRPCServer) Get

func (s *RandomizerRPCServer) Get(args interface{}, res *int) error

Get impl wrapper

Jump to

Keyboard shortcuts

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