producer

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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 BaseConfig

type BaseConfig struct {
	Amqp     *gorabbitmq.RabbitMQ
	Data     []byte
	CallBack Fn
}

func New

func New(mq *gorabbitmq.RabbitMQ, data []byte, f Fn) *BaseConfig

New 实例化

func (*BaseConfig) Publish

func (c *BaseConfig) Publish() error

Publish 消费者

type Fn

type Fn func(mq *gorabbitmq.RabbitMQ, data []byte) error

Jump to

Keyboard shortcuts

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