message

package
v0.0.0-...-57b3f38 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package message provides functionality for retrieving and handling messages using both polling and webhook-triggered methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(ctx context.Context, logger *slog.Logger, cfg *Config) error

Process checks incoming Domibus messages, reads their content, and dispatches them to the appropriate URL based on the message type.

Types

type Config

type Config struct {
	HTTPClient  *http.Client
	DomibusSOAP *domibus.SOAP
	TargetURLs  map[string]*url.URL
}

Config contains all the mandatory systems required for processing a message.

Jump to

Keyboard shortcuts

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