subscriber

package
v0.0.0-...-553ec8c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedVerification = errors.New("failed verification")
View Source
var ErrNilConfig = errors.New("cannot override nil config")

Functions

This section is empty.

Types

type Config

type Config struct {
	ProcessTopic string
}

Config represents the monitor configuration structure.

type HandleProcessError

type HandleProcessError struct {
	// contains filtered or unexported fields
}

func NewHandleProcessError

func NewHandleProcessError(msg string, err error) *HandleProcessError

func (HandleProcessError) Error

func (e HandleProcessError) Error() string

type MonitorSubscriber

type MonitorSubscriber struct {
	// contains filtered or unexported fields
}

MonitorSubscriber represents a subscriber for monitoring.

func NewMonitorSubscriber

func NewMonitorSubscriber(
	cfg *Config,
	log logger.Logger,
	sub message.Subscriber,
	router *message.Router,
	monitorPub publisher.MonitorPublisher,
) (*MonitorSubscriber, error)

NewMonitorSubscriber creates a new MonitorSubscriber instance.

func (*MonitorSubscriber) RegisterProcessHandler

func (s *MonitorSubscriber) RegisterProcessHandler()

RegisterProcessHandler registers the process handler for the monitor subscriber.

func (*MonitorSubscriber) Run

func (s *MonitorSubscriber) Run(ctx context.Context) error

Run starts the monitor subscriber's router.

type MonitorSubscriberError

type MonitorSubscriberError struct {
	// contains filtered or unexported fields
}

func NewMonitorSubscriberError

func NewMonitorSubscriberError(msg string, err error) *MonitorSubscriberError

func (MonitorSubscriberError) Error

func (e MonitorSubscriberError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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