Documentation ¶
Index ¶
- type ExchangeEntity
- type IndexController
- type MessageEntity
- type MqController
- func (m *MqController) ExchangeHandler(w http.ResponseWriter, r *http.Request)
- func (m *MqController) PublishHandler(w http.ResponseWriter, r *http.Request)
- func (m *MqController) QueueBindHandler(w http.ResponseWriter, r *http.Request)
- func (m *MqController) QueueHandler(w http.ResponseWriter, r *http.Request)
- type QueueBindEntity
- type QueueEntity
- type RabbitMQ
- func (r *RabbitMQ) BindQueue(queue, exchange string, keys []string, nowait bool) (err error)
- func (r *RabbitMQ) Close() (err error)
- func (r *RabbitMQ) Connect() (err error)
- func (r *RabbitMQ) ConsumeQueue(queue string, message chan []byte) (err error)
- func (r *RabbitMQ) DeclareExchange(name, typ string, durable, autodelete, nowait bool) (err error)
- func (r *RabbitMQ) DeclareQueue(name string, durable, autodelete, exclusive, nowait bool) (err error)
- func (r *RabbitMQ) DeleteExchange(name string) (err error)
- func (r *RabbitMQ) DeleteQueue(name string) (err error)
- func (r *RabbitMQ) Publish(exchange, key string, deliverymode, priority uint8, body string) (err error)
- func (r *RabbitMQ) UnBindQueue(queue, exchange string, keys []string) (err error)
- type TestController
- func (t *TestController) AddUser(c *gin.Context)
- func (t *TestController) DelUser(c *gin.Context)
- func (t *TestController) ES(c *gin.Context)
- func (t *TestController) GetNick(c *gin.Context)
- func (t *TestController) GetToken(c *gin.Context)
- func (t *TestController) GetUser(c *gin.Context)
- func (t *TestController) RedisTest(c *gin.Context)
- func (t *TestController) UptUser(c *gin.Context)
- func (t *TestController) UserList(c *gin.Context)
- type WsController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeEntity ¶
type IndexController ¶
type IndexController struct{}
func (*IndexController) Handle404 ¶
func (i *IndexController) Handle404(c *gin.Context)
func (*IndexController) Welcome ¶
func (i *IndexController) Welcome(c *gin.Context)
type MessageEntity ¶
type MessageEntity struct { Exchange string `json:"exchange"` Key string `json:"key"` DeliveryMode uint8 `json:"deliverymode"` Priority uint8 `json:"priority"` Body string `json:"body"` }
Entity for HTTP Request Body: Message/Exchange/Queue/QueueBind JSON Input
type MqController ¶
type MqController struct{}
func (*MqController) ExchangeHandler ¶
func (m *MqController) ExchangeHandler(w http.ResponseWriter, r *http.Request)
func (*MqController) PublishHandler ¶
func (m *MqController) PublishHandler(w http.ResponseWriter, r *http.Request)
func (*MqController) QueueBindHandler ¶
func (m *MqController) QueueBindHandler(w http.ResponseWriter, r *http.Request)
func (*MqController) QueueHandler ¶
func (m *MqController) QueueHandler(w http.ResponseWriter, r *http.Request)
HTTP Handlers
type QueueBindEntity ¶
type QueueEntity ¶
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
RabbitMQ Operate Wrapper
func (*RabbitMQ) ConsumeQueue ¶
func (*RabbitMQ) DeclareExchange ¶
func (*RabbitMQ) DeclareQueue ¶
func (*RabbitMQ) DeleteExchange ¶
func (*RabbitMQ) DeleteQueue ¶
type TestController ¶
type TestController struct{}
func (*TestController) GetNick ¶
func (t *TestController) GetNick(c *gin.Context)
func (*TestController) GetToken ¶
func (t *TestController) GetToken(c *gin.Context)
type WsController ¶
type WsController struct{}
func (*WsController) WsHandler ¶
func (w *WsController) WsHandler(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.