rpc

package
v0.0.0-...-2c3af24 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: BSD-3-Clause Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunREPL

func RunREPL(f Fluter)

RunREPL starts reading os.Stdin for commands to apply to the given Fluter

Types

type FlutAck

type FlutAck struct{ Ok bool }

type FlutStatus

type FlutStatus struct {
	*pixelflut.Performance
	Ok      bool
	Fluting bool
}

type Fluter

type Fluter interface {
	// contains filtered or unexported methods
}

Fluter implements flut operations that can be triggered via a REPL

type Hevring

type Hevring struct {
	PreviewPath string
	// contains filtered or unexported fields
}

func ConnectHevring

func ConnectHevring(ránAddress string, stop chan bool, wg *sync.WaitGroup) *Hevring

func (*Hevring) Die

func (h *Hevring) Die(x int, reply *FlutAck) error

func (*Hevring) Flut

func (h *Hevring) Flut(task pixelflut.FlutTask, reply *FlutAck) error

func (*Hevring) Status

func (h *Hevring) Status(metrics bool, reply *FlutStatus) error

func (*Hevring) Stop

func (h *Hevring) Stop(x int, reply *FlutAck) error

type Rán

type Rán struct {
	// contains filtered or unexported fields
}

Rán represents the RPC hub, used to coordinate `Hevring` clients. Implements `Fluter`

func SummonRán

func SummonRán(address string, stopChan chan bool, wg *sync.WaitGroup) *Rán

SummonRán sets up the RPC master, accepting connections at addres (":1234") Connects calls methods on each client's rpc provider, killing all clients when stopChan is closed.

func (*Rán) SetTask

func (r *Rán) SetTask(t pixelflut.FlutTask)

SetTask assigns a pixelflut.FlutTask to Rán, distributing it to all clients

Jump to

Keyboard shortcuts

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