eventbus

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSQClient

type NSQClient struct {
	Publisher bus.Publisher
	Endpoints *bus.Endpoints
	// contains filtered or unexported fields
}

NSQClient is a type to request NSQ related tasks such as creation of topics.

func InitTestPublisher

func InitTestPublisher(t *testing.T) *NSQClient

func NewNSQ

func NewNSQ(publisherConfig *bus.PublisherConfig, logger *zap.Logger, publisherProvider PublisherProvider) NSQClient

NewNSQ create a new NSQClient.

func (*NSQClient) CreateEndpoints added in v0.7.4

func (n *NSQClient) CreateEndpoints(lookupds ...string) error

func (NSQClient) CreateTopic

func (n NSQClient) CreateTopic(partitionID, topicFQN string) error

CreateTopic creates a topic for the given partition.

func (*NSQClient) WaitForPublisher

func (n *NSQClient) WaitForPublisher()

WaitForPublisher blocks until the given provider is able to provide a non nil publisher.

func (NSQClient) WaitForTopicsCreated

func (n NSQClient) WaitForTopicsCreated(partitions metal.Partitions, topics []metal.NSQTopic)

WaitForTopicsCreated blocks until the topices are created within the given partitions.

type PublisherProvider

type PublisherProvider func(*zap.Logger, *bus.PublisherConfig) (bus.Publisher, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL