handler

package
v0.0.0-...-e3528c7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package handler handles notifications of messages that should be sent back to the partner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(m monitoring.Client, f Fetcher, s Sender, checkPublishAttribute bool) pubsub.MessageHandler

New creates a new message handler.

Types

type Fetcher

type Fetcher interface {
	Get(string) ([]byte, error)
}

Fetcher fetches messages from HL7v2 stores.

type Handler

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

Handler represents a message handler.

func (*Handler) Handle

func (h *Handler) Handle(m pubsub.Message)

Handle fetches messages and sends them back to partners.

type Sender

type Sender interface {
	Send([]byte) ([]byte, error)
}

Sender sends messages back to partners.

Jump to

Keyboard shortcuts

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