server

package
v0.0.0-...-6db4251 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMQConnection

func CloseMQConnection()

func HandleMQMessage

func HandleMQMessage(msgs <-chan amqp.Delivery)

处理服务端通过消息队列发送的判题任务

func InitRabbitMQ

func InitRabbitMQ()

初始化连接和Channel

func PublishResult

func PublishResult(result models.JudgementResult)

处理完判题任务之后,发布到消息队列

func StartConsuming

func StartConsuming()

开始消费队列,准备接收业务端发送的消息任务

Types

This section is empty.

Jump to

Keyboard shortcuts

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