executor

package
v2.3.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 12 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

func NewExecutor(conn *connection.Connection, log logger.Logger,
	connID string, pubsubs map[string]pubsub.PubSub, av validator.AccessValidatorFn, r *http.Request) *Executor

NewExecutor creates protected connection and starts command loop

func (*Executor) CleanUp

func (e *Executor) CleanUp()

func (*Executor) Leave

func (e *Executor) Leave(br pubsub.PubSub, topics []string) error

func (*Executor) Set

func (e *Executor) Set(br pubsub.PubSub, 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