internal

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory interface {
	// GetPublisher returns a cherami publisher
	GetPublisher(client cherami.Client, destination string) (cherami.Publisher, error)

	// GetConsumer returns a cherami consumer
	GetConsumer(client cherami.Client, config ConsumerConfig) (cherami.Consumer, chan cherami.Delivery, error)
}

ClientFactory provides all the interfaces that are used to get cherami entities

func NewClientFactory

func NewClientFactory() ClientFactory

NewClientFactory creates a client factory object

type ConsumerConfig

type ConsumerConfig struct {
	Destination   string
	ConsumerGroup string
	PrefetchCount int
}

ConsumerConfig is the configuration needed to create a consumer object

Jump to

Keyboard shortcuts

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