producer

package
v0.0.0-...-248868a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGokaProducer

func NewGokaProducer(opt GokaProducerOpt) (producer pubsub.Publisher, err error)

Types

type GokaProducer

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

func (GokaProducer) Close

func (p GokaProducer) Close() (err error)

func (GokaProducer) Send

func (p GokaProducer) Send(ctx context.Context, key string, message interface{}) (err error)

type GokaProducerOpt

type GokaProducerOpt struct {
	Brokers []string
	Topic   string
	Codec   pubsub.GokaCodec
}

Jump to

Keyboard shortcuts

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