comswitch

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factory = FactoryType{}

Functions

func IsHttpHandler

func IsHttpHandler(handler string) bool

Types

type FactoryType

type FactoryType struct{}

func (FactoryType) NewConsumer

func (this FactoryType) NewConsumer(basectx context.Context, config util.Config, responseListener func(msg string) error, errorListener func(msg string) error) (err error)

func (FactoryType) NewProducer

func (this FactoryType) NewProducer(basectx context.Context, config util.Config) (result com.ProducerInterface, err error)

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

func (*Producer) Produce

func (this *Producer) Produce(topic string, message string) (err error)

func (*Producer) ProduceWithKey

func (this *Producer) ProduceWithKey(topic string, key string, message string) (err error)

Jump to

Keyboard shortcuts

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