header

package
v0.0.0-...-e69eef7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 15

Documentation

Overview

Package header contains functionality to generate headers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Header     *config.Header
	MsgCtrlGen *MessageControlGenerator
}

Generator is a generator of headers.

func (*Generator) NewHeader

func (g *Generator) NewHeader(step *pathway.Step) *message.HeaderInfo

NewHeader returns a HeaderInfo for the given step with a unique Message Control ID and values from the header configuration file and the step. The step must be non-nil.

type MessageControlGenerator

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

MessageControlGenerator is a generator of Message Control IDs.

func (*MessageControlGenerator) NewMessageControlID

func (g *MessageControlGenerator) NewMessageControlID() string

NewMessageControlID returns a unique Message Control ID to use in the MSH.10 Message Control ID field (type ST). The IDs are incremental integer numbers starting with 1 - this is an easy way of generating unique values. NewMessageControlID is safe for concurrent use.

Jump to

Keyboard shortcuts

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