pubsub
package v1.4.0
Go to latest Published: Feb 19, 2021 License:Apache-2.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:4 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeFilter¶added inv1.3.0
type Filter func(msg interface{})boolFilter is a function to filter out messages before they reach a subscriptions primary Handler
typeHandler¶added inv1.3.0
type Handler func(msg interface{})boolHandler is the function executed against the inbound message in a subscription
typePubSub¶
type PubSub interface {// Publish publishes the object to the channel by namePublish(channelstring, obj interface{})error// Subscribe subscribes to the given channel until the context is cancelled.Subscribe(ctxcontext.Context, channelstring, handlerHandler, opts ...SubOpt)error// Close closes all subscriptionsClose()}PubSub is used to asynchronously pass messages between routines.
typeSubOptions¶added inv1.4.0
type SubOptions struct {// contains filtered or unexported fields} Click to show internal directories.
Click to hide internal directories.