producer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr string
}

type Params

type Params struct {
	Topic   string
	Message []byte
}

type Producer

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

func New

func New(config *Config) (*Producer, error)

func (*Producer) Close

func (p *Producer) Close() error

func (*Producer) Push

func (p *Producer) Push(ctx context.Context, params *Params) error

Jump to

Keyboard shortcuts

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