processor

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// Protocol is the name of the processor protocol
	Protocol *protocol.Protocol
	// Connector is the name of the processor connector
	Connector connector.Connector
	// Opts is the name of the processor options
	Opts *options.Options
	// ProducerConfConnector is the name of the producer configuration
	ProducerConfConnector cc.ProducerConfConnector
	// ProducerConnector is the name of the processor configuration
	ProcessorConfConnector cc.ProcessorConfConnector
}

Processor is a server of the event

func New

func New(opts *options.Options) (*Processor, error)

New creates a new Processor

func (*Processor) Start

func (s *Processor) Start() error

Start initialize some operations

func (*Processor) Stop

func (s *Processor) Stop() error

Stop stops the processor gracefully.

Directories

Path Synopsis
nsq

Jump to

Keyboard shortcuts

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