streammanager

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseProducer added in v0.1.10

func CloseProducer(producer interface{}, destType string) error

CloseProducer delegates the call to the appropriate manager based on parameter destination to close a given producer

func NewProducer added in v0.1.10

func NewProducer(destinationConfig interface{}, destType string, o Opts) (interface{}, error)

NewProducer delegates the call to the appropriate based on parameter destination for creating producer

func Produce

func Produce(jsonData json.RawMessage, destType string, producer, config interface{}) (int, string, string)

Produce delegates call to appropriate manager based on parameter destination

Types

type Opts added in v0.1.10

type Opts struct {
	Timeout time.Duration
}

type StreamProducer added in v0.1.10

type StreamProducer interface {
	Produce(jsonData json.RawMessage, producer, destConfig interface{}) (int, string, string)
}

Jump to

Keyboard shortcuts

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