consumer

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     map[string]interface{}
	CallBack Fn
}

func New

func New(mq *gorabbitmq.RabbitMQ, data map[string]interface{}, f Fn) *BaseConfig

New 实例化

func (*BaseConfig) Consumer

func (c *BaseConfig) Consumer() error

Consumer 消费者

type Fn

type Fn func(mq *gorabbitmq.RabbitMQ, Data map[string]interface{}) error

Jump to

Keyboard shortcuts

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