Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnswersExchange = "amq.direct" AnswersQueueName = "answers" )
Variables ¶
This section is empty.
Functions ¶
func GetBinding ¶
Types ¶
type RequestCallback ¶
type RequestCallback func(ctx context.Context, s *discordgo.Session, i *discordgo.InteractionCreate, message *amqp.RabbitMQMessage, properties map[string]any)
type RequestManager ¶
type RequestManager interface { Request(s *discordgo.Session, i *discordgo.InteractionCreate, routingKey string, message *amqp.RabbitMQMessage, callback RequestCallback, properties ...map[string]any) error Listen() }
type RequestManagerImpl ¶
type RequestManagerImpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(broker amqp.MessageBroker) *RequestManagerImpl
func (*RequestManagerImpl) Listen ¶
func (manager *RequestManagerImpl) Listen()
func (*RequestManagerImpl) Request ¶
func (manager *RequestManagerImpl) Request(s *discordgo.Session, i *discordgo.InteractionCreate, routingKey string, message *amqp.RabbitMQMessage, callback RequestCallback, optionalProperties ...map[string]any) error
Click to show internal directories.
Click to hide internal directories.