Documentation ¶
Overview ¶
Package mllp contains functionality for encoding and decoding HL7 messages for transmission using the MLLP protocol. See here for the specification: http://www.hl7.org/documentcenter/public_temp_670395EE-1C23-BA17-0CD218684D5B3C71/wg/inm/mllp_transport_specification.PDF
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageReader ¶
type MessageReader struct {
// contains filtered or unexported fields
}
MessageReader consumes MLLP messages from a stream.
func NewMessageReader ¶
func NewMessageReader(r io.Reader) *MessageReader
NewMessageReader to unwrap MLLP messages the provided stream.
func (*MessageReader) Next ¶
func (mr *MessageReader) Next() ([]byte, error)
Next message in the reader. Unwraps the inner message by removing the start block, end block, and carriage return bytes.
Click to show internal directories.
Click to hide internal directories.