handler

package
v0.0.0-...-8b49249 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

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

This section is empty.

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 New

func New(m monitoring.Client, f Fetcher, s Sender, checkPublishAttribute bool) *Handler

New creates a new 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