Last active
August 6, 2021 11:39
-
-
Save percybolmer/f96b5138db8c2a2fa9fa3ee567e5d9aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Engine is a interface that declares what methods a pub/sub engine needs in Go4Data | |
type Engine interface { | |
Publish(key string, payloads ...payload.Payload) []PublishingError | |
PublishTopics(topics []string, payloads ...payload.Payload) []PublishingError | |
Subscribe(key string, pid uint, queueSize int) (*Pipe, error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment