partyline

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package partyline implements Redis-based communication of command-sets for command-set hosts and their clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Poller

func Poller(tu TableUpdater)

Types

type CommandSetRegistration

type CommandSetRegistration struct {
	Sets []ipc.HostCommandSet
	// contains filtered or unexported fields
}

TODO: cancel + clean unregister TODO: need to be able to detect cset updates

func NewProvider

func NewProvider(selfaddr string, sets []ipc.HostCommandSet) (*CommandSetRegistration, error)

func (*CommandSetRegistration) Close

func (csr *CommandSetRegistration) Close() error

Close unregisters all commandsets.

type CommandSets

type CommandSets struct {
	Sets map[string]*ipc.HostCommandSet
	// contains filtered or unexported fields
}

func (*CommandSets) Poll

func (cs *CommandSets) Poll() (mutated bool, err error)

type TableUpdater

type TableUpdater interface {
	UpdateSets(sets map[string]*ipc.HostCommandSet)
}

Jump to

Keyboard shortcuts

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