Documentation ¶
Overview ¶
Package pubsub 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 Listen ¶
func Listen(ctx context.Context, cred string, h MessageHandler, projectID string, topic string, opts ...option.ClientOption) error
Listen listens for notifications from a pubsub subscription, uses the ids in the messages to fetch content with the HL7v2 API, then sends the message to the partner over MLLP.
Types ¶
type MessageHandler ¶
type MessageHandler interface {
Handle(Message)
}
MessageHandler is the interface for handling HL7v2 messages.
Click to show internal directories.
Click to hide internal directories.