Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) EnsureOpenGamesRandomQueueExists() error
- func (c *Client) Init() error
- func (c *Client) NewChannel() (*amqp.Channel, error)
- func (c *Client) PublishOpenGameForDispatcher(message *messaging.Container, dispatcherID string) error
- func (c *Client) PublishRandomGameToWorkQueue(message *messaging.Container) error
Constants ¶
View Source
const ( // ExchangeOpenGames is the exchange where open games are distributed by dispatcherID ExchangeOpenGames = "ExchangeOpenGames" // QueueOpenGamesRandom is the workqueu where new games are published and picked up at random by any gameserver QueueOpenGamesRandom = "OpenGamesRandom" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client used to communicate with rabbitmq
func (*Client) EnsureOpenGamesRandomQueueExists ¶
EnsureOpenGamesRandomQueueExists declares the queue for open games waiting to be picked up by a gameserver
func (*Client) NewChannel ¶
NewChannel returns a new channel from the amqp connection
Click to show internal directories.
Click to hide internal directories.