broker

package
v0.0.0-...-00d8e56 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQ

type RabbitMQ struct {
	Delivery <-chan amqp.Delivery
	Channel  *amqp.Channel
	// contains filtered or unexported fields
}

func NewRabbitMQ

func NewRabbitMQ(logger *zap.SugaredLogger) *RabbitMQ

func (*RabbitMQ) Publish

func (r *RabbitMQ) Publish(routingKey string, msg interface{}) error

TODO consider use another exachange, will it affect performance? - DONE but check performance

type SiteRequestEvent

type SiteRequestEvent struct {
	Url string `json:"url"`
}

type SiteResponseEvent

type SiteResponseEvent struct {
	ParentUrl  string   `json:"parentUrl"`
	Categories []string `json:"categories"`
	Articles   []string `json:"articles"`
}

Jump to

Keyboard shortcuts

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