executor

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewExecutor

NewExecutor creates protected connection and starts command loop

func (*Executor) CleanUp

func (e *Executor) CleanUp()

func (*Executor) Leave

func (e *Executor) Leave(topics []string) error

func (*Executor) Set

func (e *Executor) Set(topics []string) error

func (*Executor) StartCommandLoop

func (e *Executor) StartCommandLoop() error

type Response

type Response struct {
	Topic   string   `json:"topic"`
	Payload []string `json:"payload"`
}

Jump to

Keyboard shortcuts

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