queue

package
v0.0.0-...-343d9cb Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitQueue

type RabbitQueue struct {
	*amqp.Channel
	// contains filtered or unexported fields
}

func NewRabbitQueue

func NewRabbitQueue(
	dsn, exchangeName, queueName string,
	connectTimeout, retryPeriod time.Duration,
) *RabbitQueue

func (*RabbitQueue) ClickEvent

func (n *RabbitQueue) ClickEvent(groupID, slotID, bannerID int64) error

func (*RabbitQueue) Send

func (n *RabbitQueue) Send(event *entity.BannerEvent) error

func (*RabbitQueue) Setup

func (n *RabbitQueue) Setup()

func (*RabbitQueue) ShowEvent

func (n *RabbitQueue) ShowEvent(groupID, slotID, bannerID int64) error

type Service

type Service interface {
	ClickEvent(groupID, slotID, bannerID int64) error
	ShowEvent(groupID, slotID, bannerID int64) error
}

Jump to

Keyboard shortcuts

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