executor

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 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 *zap.Logger,
	connID string, sub pubsub.Subscriber, 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(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