# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
IfContextSetWith executes the function if the key is set in the context as a string.
IfContextValueEquals executes the function if the key is set in the context as a given type and the value is equal to the expected value.
# Constants
ContextKeyIsBrokerMessage is the message that has been sent or received from/to the broker.
ContextKeyIsChannel is the name of the channel this data is coming from.
ContextKeyIsCorrelationID is the correlation ID of the message.
ContextKeyIsMessage is the message that has been sent or received.
ContextKeyIsMessageDirection is the direction this data is coming from.
ContextKeyIsProvider is the name of the provider this data is coming from.
Prefix is the prefix used for all context keys in order to avoid collision with other keys that can be present in context.
# Structs
BrokerMessage is a wrapper that will contain all information regarding a message.
DummyLogger is a logger that does not log anything.
LogInfo is a key-value pair that will be added to the log.
# Interfaces
BrokerController represents the functions that should be implemented to connect the broker to the application or the user.
Logger is the interface that must be implemented by a logger.
# Type aliases
ContextKey is the type of the keys used in the context.
Middleware is the signature of the function that needs to be implemented to use middleware functionnality
You can call the next middleware during the execution of the defined middleware in order to wrap code execution (for example, to time execution, or recover in case of panic).
NextMiddleware represents the next middleware that can be executed during the previous middleware.