Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DuplicatePayloadError = &duplicatePayloadError{&repuberr{errors.New("duplicatePayloadError")}}
DuplicatePayloadError is the error returned when the republisher detects a duplicate
View Source
var EncodingError = &encodingError{&repuberr{errors.New("encoding failed")}}
EncodingError is returned when wire un- marshaling fails
View Source
var InvalidError = &invalidError{&repuberr{errors.New("invalid payload")}}
InvalidError is returned when the payload is invalid
Functions ¶
This section is empty.
Types ¶
type Republisher ¶
type Republisher struct {
// contains filtered or unexported fields
}
Republisher handles the repropagation of messages propagated with a specified topic
func New ¶
New creates a Republisher for a given topic. Multiple Validator functions can be specified for the Republisher to run before forwarding the message
func (*Republisher) Activate ¶
func (r *Republisher) Activate() uint32
Activate the Republisher by listening to topic through a callback listener
Click to show internal directories.
Click to hide internal directories.