Documentation ¶
Index ¶
- func AddPublisher(topicName string, publisher Publisher)
- func InitializeDevPublishers(topicNames []string) error
- type Publisher
- type SubscriptionConfig
- type SubscriptionCreator
- type TopicCreator
- type VirtualPublisher
- func (v *VirtualPublisher) CreateSubscription(subscriptionName string, topicName string, endpoint string, ...) error
- func (v *VirtualPublisher) CreateTopic(topicName string) error
- func (v *VirtualPublisher) Publish(message interface{}) error
- func (v *VirtualPublisher) PushMessage(message interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPublisher ¶
func InitializeDevPublishers ¶
Types ¶
type Publisher ¶
type Publisher interface {
Publish(message interface{}) error
}
func GetPublisher ¶
func NewVirtualPublisher ¶
type SubscriptionConfig ¶
func DefaultSubscriptionConfig ¶
func DefaultSubscriptionConfig() SubscriptionConfig
type SubscriptionCreator ¶
type SubscriptionCreator interface {
CreateSubscription(subscriptionName, topicName, endpoint string, config SubscriptionConfig) error
}
type TopicCreator ¶
type VirtualPublisher ¶
type VirtualPublisher struct {
// contains filtered or unexported fields
}
func (*VirtualPublisher) CreateSubscription ¶
func (v *VirtualPublisher) CreateSubscription(subscriptionName string, topicName string, endpoint string, config SubscriptionConfig) error
CreateSubscription implements Publisher.
func (*VirtualPublisher) CreateTopic ¶
func (v *VirtualPublisher) CreateTopic(topicName string) error
CreateTopic implements Publisher.
func (*VirtualPublisher) Publish ¶
func (v *VirtualPublisher) Publish(message interface{}) error
Publish implements Publisher.
func (*VirtualPublisher) PushMessage ¶
func (v *VirtualPublisher) PushMessage(message interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.