rabbit

package
Version: v0.0.0-...-4f159c3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(messageBag *MessageBag)

type MessageBag

type MessageBag struct {
	PostId   int64 // optional
	Message  tgbotapi.MessageConfig
	Priority uint8 // 0..9
}

type RabbitClient

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

func NewRabbitClient

func NewRabbitClient(url string, queueName string) *RabbitClient

func (*RabbitClient) Close

func (rc *RabbitClient) Close()

func (*RabbitClient) Connect

func (rc *RabbitClient) Connect()

func (*RabbitClient) PublishTgMessage

func (rc *RabbitClient) PublishTgMessage(messageBag MessageBag)

func (*RabbitClient) RegisterHandler

func (rc *RabbitClient) RegisterHandler(f Handler)

Source Files

Jump to

Keyboard shortcuts

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